From 39cb95579a8d0b8f1c8869d746999155f643b1fe Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 27 May 2015 13:40:03 -0700 Subject: [PATCH] Fix the callback --- lib/sql.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sql.js b/lib/sql.js index 91a8b29..a94b8e1 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -405,11 +405,12 @@ SQLConnector.prototype.execute = function(sql, params, options, callback) { options: options }; this.notifyObserversAround('execute', context, function(context, done) { - self.executeSQL(sql, params, options, function(err, info, extra) { + self.executeSQL(sql, params, options, function(err, info) { if (!err && info != null) { context.res = info; } - done(err, info, extra); + // Don't pass more than one args as it will confuse async.waterfall + done(err, info); }); }, callback); };