Skip to content

Commit 6b4bc39

Browse files
committed
Uses val function instead
1 parent f658b31 commit 6b4bc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection-parameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var ConnectionParameters = function(config) {
3838
this.password = val('password', config);
3939
this.binary = val('binary', config);
4040
this.ssl = config.ssl || defaults.ssl;
41-
this.client_encoding = config.client_encoding || defaults.client_encoding;
41+
this.client_encoding = val("client_encoding", config);
4242
//a domain socket begins with '/'
4343
this.isDomainSocket = (!(this.host||'').indexOf('/'));
4444
};

0 commit comments

Comments
 (0)