diff --git a/lib/sql.js b/lib/sql.js index ac9e553..d63bf81 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -952,7 +952,7 @@ SQLConnector.prototype.buildFields = function(model, data, excludeIds) { * @param {Boolean} excludeIds Exclude id properties or not, default to false * @returns {{names: Array, values: Array, properties: Array}} */ -SQLConnector.prototype._buildReplaceFields = function(model, data, excludeIds) { +SQLConnector.prototype.buildReplaceFields = function(model, data, excludeIds) { var props = this.getModelDefinition(model).properties; var keys = Object.keys(props); return this._buildFieldsForKeys(model, data, keys, excludeIds); @@ -1025,7 +1025,7 @@ SQLConnector.prototype.buildFieldsForReplace = function(model, data, excludeIds) if (excludeIds === undefined) { excludeIds = true; } - var fields = this._buildReplaceFields(model, data, excludeIds); + var fields = this.buildReplaceFields(model, data, excludeIds); return this._constructUpdateParameterizedSQL(fields); };