Enable Inversion of Control in connector hooks through modifications of the context object.

This commit is contained in:
Frank Steegmans 2015-06-21 17:54:21 +02:00
parent 1996c83d95
commit 8762196028
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ 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) {
self.executeSQL(context.req.sql, context.req.params, context.options, function(err, info) {
if (!err && info != null) {
context.res = info;
}