Skip to content

Commit b7f81f8

Browse files
committed
Merge pull request brianc#356 from Hebo/pgbouncer_encoding_libpq_fix
Fix client_encoding setting to support pg_bouncer when using libpq (brianc#270)
2 parents aeda9da + 323a2f9 commit b7f81f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection-parameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ConnectionParameters.prototype.getLibpqConnectionString = function(cb) {
6161
params.push("host=" + this.host);
6262
return cb(null, params.join(' '));
6363
}
64-
params.push("options=--client_encoding='utf-8'");
64+
params.push("client_encoding='utf-8'");
6565
dns.lookup(this.host, function(err, address) {
6666
if(err) return cb(err, null);
6767
params.push("hostaddr=" + address);

0 commit comments

Comments
 (0)