From d4dc76077b9dcf0e13a5e4228a4c9918c78bd4ea Mon Sep 17 00:00:00 2001 From: swilly Date: Tue, 5 Mar 2013 15:44:20 -0500 Subject: [PATCH 1/2] possible fix for: error: unrecognized configuration parameter 'lient_encoding' --- lib/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/connection.js b/lib/connection.js index ffd7d9c..dfae389 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -116,8 +116,8 @@ p.startup = function(config) { .addCString(config.user) .addCString('database') .addCString(config.database) - .addCString('options') - .addCString("--client_encoding='utf-8'") + .addCString('client_encoding') + .addCString("'utf-8'") .addCString('').flush(); //this message is sent without a code From 49bff032aa76fbebde6ba984082fa3f91a244fd5 Mon Sep 17 00:00:00 2001 From: swilly Date: Wed, 6 Mar 2013 12:00:17 -0500 Subject: [PATCH 2/2] fix tests --- test/unit/connection/outbound-sending-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/connection/outbound-sending-tests.js b/test/unit/connection/outbound-sending-tests.js index 2679dfd..2d5c0a0 100644 --- a/test/unit/connection/outbound-sending-tests.js +++ b/test/unit/connection/outbound-sending-tests.js @@ -23,8 +23,8 @@ test("sends startup message", function() { .addCString('brian') .addCString('database') .addCString('bang') - .addCString('options') - .addCString("--client_encoding='utf-8'") + .addCString('client_encoding') + .addCString("'utf-8'") .addCString('').join(true)) });