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:
commit
b7f81f8af3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user