From d54be209e4a2cf320561c5fb9d6a2f96352a164d Mon Sep 17 00:00:00 2001 From: Rowan Wookey Date: Fri, 25 Oct 2013 09:47:11 +0100 Subject: [PATCH] Fixed felixge/node-mysql#622 ReferenceError: Config is not defined when using connection.changeUser and changing the charset --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index cc3646ff3..a12bfeb42 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -83,7 +83,7 @@ Connection.prototype.changeUser = function(options, cb){ } var charsetNumber = (options.charset) - ? Config.getCharsetNumber(options.charset) + ? ConnectionConfig.getCharsetNumber(options.charset) : this.config.charsetNumber; var self = this;