Enable Inversion of Control in connector hooks through modifications of the context object.
This commit is contained in:
parent
1996c83d95
commit
8762196028
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue