Merge pull request #291 from wgraeber/master
Potential fix for client_encoding error
This commit is contained in:
commit
ed75b2f453
@ -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
|
||||
|
||||
|
@ -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))
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user