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