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(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
|
||||||
|
|
||||||
|
@ -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))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user