Change _buildReplace to buildReplace
This commit is contained in:
parent
98795213fc
commit
48931922c3
|
@ -637,7 +637,7 @@ SQLConnector.prototype.buildUpdate = function(model, where, data, options) {
|
|||
* @param {Function} cb The callback function
|
||||
* @returns {ParameterizedSQL} The UPDATE SQL statement for replacing fields
|
||||
*/
|
||||
SQLConnector.prototype._buildReplace = function(model, where, data, options) {
|
||||
SQLConnector.prototype.buildReplace = function(model, where, data, options) {
|
||||
var fields = this.buildFieldsForReplace(model, data);
|
||||
return this._constructUpdateQuery(model, where, fields);
|
||||
};
|
||||
|
@ -680,7 +680,7 @@ SQLConnector.prototype.update = function(model, where, data, options, cb) {
|
|||
* @param {Function} cb The callback function
|
||||
*/
|
||||
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.execute(stmt.sql, stmt.params, options, cb);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue