Skip to content

Commit

Permalink
Fixes issue #7. Push to version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bminer committed Jan 16, 2012
1 parent 75f4c11 commit 47df40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -26,7 +26,7 @@ module.exports = function(db, debug) {
"implicitly committed.\nIt is HIGHLY recommended that you " +
"explicitly commit all transactions.\n" +
"The last query to run was:", ceq.lastExecuted.sql);
ceq.commit();
ceq.commit(ceq._autoCommitCB);
return;
}
currentlyExecutingQueue = null;
Expand Down Expand Up @@ -147,6 +147,7 @@ Queue.isNowTransaction = function(q, dbQuery) {
if(this.queue.length > 0)
{
this._autoCommit = true;
this._autoCommitCB = cb;
this.resume();
}
else
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Blake Miner <miner.blake@gmail.com> (http://www.blakeminer.com)",
"name": "mysql-queues",
"description": "Wraps 'mysql' to provide mulitple query queues, allowing support for multiple statements and transactions.",
"version": "0.3.2",
"version": "0.3.3",
"homepage": "https://github.com/bminer/node-mysql-queues",
"repository": {
"type": "git",
Expand Down

0 comments on commit 47df40a

Please sign in to comment.