Skip to content

Commit

Permalink
Merge pull request #21 from monisnap-julien/patch-1
Browse files Browse the repository at this point in the history
Fixing "ER_EMPTY_QUERY" error
  • Loading branch information
jeremydaly authored Apr 24, 2019
2 parents 3b2f0f6 + 3b5a4c3 commit 3096930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ const commit = async (queries,rollback) => {
await query('START TRANSACTION')

// Loop through queries
for (let i in queries) {
for (let i = 0; i < queries.length; i++) {
// Execute the queries, pass the rollback as context
let result = await query.apply({rollback},queries[i](results[results.length-1],results))
// Add the result to the main results accumulator
Expand Down

0 comments on commit 3096930

Please sign in to comment.