Uses val function instead

This commit is contained in:
Dave 2013-06-06 12:24:12 -07:00
parent f658b31aed
commit 6b4bc3945f

View File

@ -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('/'));
};