Uses val function instead
This commit is contained in:
parent
f658b31aed
commit
6b4bc3945f
@ -38,7 +38,7 @@ var ConnectionParameters = function(config) {
|
||||
this.password = val('password', config);
|
||||
this.binary = val('binary', config);
|
||||
this.ssl = config.ssl || defaults.ssl;
|
||||
this.client_encoding = config.client_encoding || defaults.client_encoding;
|
||||
this.client_encoding = val("client_encoding", config);
|
||||
//a domain socket begins with '/'
|
||||
this.isDomainSocket = (!(this.host||'').indexOf('/'));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user