From 323a2f9f49faf8ea183b256a74dace0e8332304a Mon Sep 17 00:00:00 2001 From: Hebo Date: Tue, 21 May 2013 14:37:06 -0700 Subject: [PATCH] Fix client_encoding setting to support pg_bouncer when using libpq (#270) --- lib/connection-parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection-parameters.js b/lib/connection-parameters.js index d635170..91ad663 100644 --- a/lib/connection-parameters.js +++ b/lib/connection-parameters.js @@ -61,7 +61,7 @@ ConnectionParameters.prototype.getLibpqConnectionString = function(cb) { params.push("host=" + this.host); return cb(null, params.join(' ')); } - params.push("options=--client_encoding='utf-8'"); + params.push("client_encoding='utf-8'"); dns.lookup(this.host, function(err, address) { if(err) return cb(err, null); params.push("hostaddr=" + address);