Change _buildUpdate to buildUpdate

This commit is contained in:
Amir Jafarian 2016-01-12 13:22:37 -05:00
parent 97c972e3ea
commit 98795213fc
2 changed files with 2 additions and 3 deletions

View File

@ -271,7 +271,6 @@ Connector.defineAliases = function(cls, methodOrPropertyName, aliases) {
*/ */
Connector.defineAliases(Connector.prototype, 'execute', ['command', 'query']); Connector.defineAliases(Connector.prototype, 'execute', ['command', 'query']);
Connector.defineAliases(Connector.prototype, '_buildUpdate', 'buildUpdate');

View File

@ -623,7 +623,7 @@ SQLConnector.prototype._buildWhereObjById = function(model, id, data) {
* @param {Function} cb The callback function * @param {Function} cb The callback function
* @returns {ParameterizedSQL} The UPDATE SQL statement * @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); var fields = this.buildFieldsForUpdate(model, data);
return this._constructUpdateQuery(model, where, fields); return this._constructUpdateQuery(model, where, fields);
}; };
@ -666,7 +666,7 @@ SQLConnector.prototype._constructUpdateQuery = function(model, where, fields) {
* @param {Function} cb The callback function * @param {Function} cb The callback function
*/ */
SQLConnector.prototype.update = function(model, where, data, options, cb) { 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); this._executeAlteringQuery(model, stmt.sql, stmt.params, options, cb || NOOP);
}; };