Merge pull request #356 from Hebo/pgbouncer_encoding_libpq_fix

Fix client_encoding setting to support pg_bouncer when using libpq (#270)
This commit is contained in:
Brian C 2013-05-23 07:51:16 -07:00
commit b7f81f8af3

View File

@ -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);