call execute directly for _replace

This commit is contained in:
Amir Jafarian 2016-01-07 22:03:10 -05:00
parent 3a92328fc3
commit 1e5c7dbfc4
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ SQLConnector.prototype.update = function(model, where, data, options, cb) {
*/
SQLConnector.prototype._replace = function(model, where, data, options, cb) {
var stmt = this._buildReplace(model, where, data, options);
this._executeAlteringQuery(model, stmt.sql, stmt.params, options, cb);
this.execute(stmt.sql, stmt.params, options, cb);
};
SQLConnector.prototype._executeAlteringQuery = function(model, sql, params, options, cb) {