mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Fix client_encoding setting to support pg_bouncer when using libpq (#270)
This commit is contained in:
parent
aeda9dab50
commit
323a2f9f49
@ -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…
x
Reference in New Issue
Block a user