Merge pull request #291 from wgraeber/master

Potential fix for client_encoding error
This commit is contained in:
Brian C 2013-03-07 05:32:15 -08:00
commit ed75b2f453
2 changed files with 4 additions and 4 deletions

View File

@ -114,8 +114,8 @@ Connection.prototype.startup = function(config) {
.addCString(config.user) .addCString(config.user)
.addCString('database') .addCString('database')
.addCString(config.database) .addCString(config.database)
.addCString('options') .addCString('client_encoding')
.addCString("--client_encoding='utf-8'") .addCString("'utf-8'")
.addCString('').flush(); .addCString('').flush();
//this message is sent without a code //this message is sent without a code

View File

@ -23,8 +23,8 @@ test("sends startup message", function() {
.addCString('brian') .addCString('brian')
.addCString('database') .addCString('database')
.addCString('bang') .addCString('bang')
.addCString('options') .addCString('client_encoding')
.addCString("--client_encoding='utf-8'") .addCString("'utf-8'")
.addCString('').join(true)) .addCString('').join(true))
}); });