From 1e5c7dbfc4754073be82e4af598375fe015cbdf8 Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Thu, 7 Jan 2016 22:03:10 -0500 Subject: [PATCH] call execute directly for _replace --- lib/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sql.js b/lib/sql.js index 74e6b63..dd05b6f 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -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) {