Change _buildReplace to buildReplace

This commit is contained in:
Amir Jafarian 2016-01-12 17:27:55 -05:00
parent 98795213fc
commit 48931922c3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
};