call execute directly for _replace
This commit is contained in:
parent
3a92328fc3
commit
1e5c7dbfc4
|
@ -685,7 +685,7 @@ SQLConnector.prototype.update = function(model, where, data, options, cb) {
|
||||||
*/
|
*/
|
||||||
SQLConnector.prototype._replace = function(model, where, data, options, cb) {
|
SQLConnector.prototype._replace = function(model, where, data, options, cb) {
|
||||||
var stmt = this._buildReplace(model, where, data, options);
|
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) {
|
SQLConnector.prototype._executeAlteringQuery = function(model, sql, params, options, cb) {
|
||||||
|
|
Loading…
Reference in New Issue