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('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

View File

@ -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))
});