fix for server enconding when using SQL_ASCII and latin1 enconding
This commit is contained in:
parent
afe249896f
commit
860cccd531
@ -39,11 +39,12 @@ var Client = function(config) {
|
||||
this.connection = c.connection || new Connection({
|
||||
stream: c.stream,
|
||||
ssl: this.connectionParameters.ssl,
|
||||
keepAlive: c.keepAlive || false
|
||||
keepAlive: c.keepAlive || false,
|
||||
client_encoding: this.connectionParameters.client_encoding || 'utf8',
|
||||
});
|
||||
this.queryQueue = [];
|
||||
this.binary = c.binary || defaults.binary;
|
||||
this.encoding = 'utf8';
|
||||
this.encoding = this.connectionParameters.client_encoding || 'utf8';
|
||||
this.processID = null;
|
||||
this.secretKey = null;
|
||||
this.ssl = this.connectionParameters.ssl || false;
|
||||
|
@ -39,7 +39,7 @@ var Connection = function(config) {
|
||||
this.lastOffset = 0;
|
||||
this.buffer = null;
|
||||
this.offset = null;
|
||||
this.encoding = 'utf8';
|
||||
this.encoding = config.client_encoding || 'utf8';
|
||||
this.parsedStatements = {};
|
||||
this.writer = new Writer();
|
||||
this.ssl = config.ssl || false;
|
||||
|
Loading…
Reference in New Issue
Block a user