Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix bad array iteration #7

Merged
merged 1 commit into from

2 participants

@demian85
Collaborator

Fix iterating array like an object so Array.prototype can be modified safely.
Please update because it's now breaking my code when method end() is called.

@Kijewski Kijewski merged commit e39c94e into from
@Kijewski
Owner

Merged it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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)));
}
Something went wrong with that request. Please try again.