Change _buildUpdate to buildUpdate
This commit is contained in:
parent
97c972e3ea
commit
98795213fc
|
@ -271,7 +271,6 @@ Connector.defineAliases = function(cls, methodOrPropertyName, aliases) {
|
|||
*/
|
||||
Connector.defineAliases(Connector.prototype, 'execute', ['command', 'query']);
|
||||
|
||||
Connector.defineAliases(Connector.prototype, '_buildUpdate', 'buildUpdate');
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -623,7 +623,7 @@ SQLConnector.prototype._buildWhereObjById = function(model, id, data) {
|
|||
* @param {Function} cb The callback function
|
||||
* @returns {ParameterizedSQL} The UPDATE SQL statement
|
||||
*/
|
||||
SQLConnector.prototype._buildUpdate = function(model, where, data, options) {
|
||||
SQLConnector.prototype.buildUpdate = function(model, where, data, options) {
|
||||
var fields = this.buildFieldsForUpdate(model, data);
|
||||
return this._constructUpdateQuery(model, where, fields);
|
||||
};
|
||||
|
@ -666,7 +666,7 @@ SQLConnector.prototype._constructUpdateQuery = function(model, where, fields) {
|
|||
* @param {Function} cb The callback function
|
||||
*/
|
||||
SQLConnector.prototype.update = function(model, where, data, options, cb) {
|
||||
var stmt = this._buildUpdate(model, where, data, options);
|
||||
var stmt = this.buildUpdate(model, where, data, options);
|
||||
this._executeAlteringQuery(model, stmt.sql, stmt.params, options, cb || NOOP);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue