From 7cf69dbcb9cbb6d28542ef5597186c9bd3707e09 Mon Sep 17 00:00:00 2001 From: cpentra1 Date: Fri, 21 Nov 2014 00:58:02 -0500 Subject: [PATCH] fix(initialization): bug fix for setting limit on number of connections in connection pool --- lib/mysql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql.js b/lib/mysql.js index 4bd4b55..1015465 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -34,7 +34,7 @@ exports.initialize = function initializeDataSource(dataSource, callback) { s.supportBigNumbers = (s.supportBigNumbers || false); s.timezone = (s.timezone || 'local'); - if (!isNaN(s.connectionLimit)) { + if (isNaN(s.connectionLimit)) { s.connectionLimit = 10; }