From 6b4bc3945f4051b3d758087a9e940d39d7ff7826 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 6 Jun 2013 12:24:12 -0700 Subject: [PATCH] Uses val function instead --- lib/connection-parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection-parameters.js b/lib/connection-parameters.js index 84fa5fd..9f44c8e 100644 --- a/lib/connection-parameters.js +++ b/lib/connection-parameters.js @@ -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('/')); };