Skip to content
Browse files

Merge pull request #7 from demian85/patch-1

Fix bad array iteration
  • Loading branch information...
2 parents 6b5d612 + 3a59177 commit e39c94e4bfe4d9462449aa524d312b8f014266dd @Kijewski committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mysql-pool/pool.js
View
2 lib/mysql-pool/pool.js
@@ -89,7 +89,7 @@ MySQLPool.prototype._forEach = function _forEach(params) {
};
}
- for(var i in this._connectionPool) {
+ for(var i = 0, len = this._connectionPool.length; i < len; i++) {
var client = this._connectionPool[i];
params.method.apply(client, args.concat(mkCallback(client)));
}

0 comments on commit e39c94e

Please sign in to comment.
Something went wrong with that request. Please try again.