diff --git a/lib/sql.js b/lib/sql.js index 23e9042..b362b4e 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -419,7 +419,7 @@ SqlConnector.prototype.update = var whereClause = buildWhere(this, model, where); var sql = 'UPDATE ' + this.tableEscaped(model) + ' SET ' + - this.toFields(model, data) + whereClause; + this.toFields(model, data) + ' ' + whereClause; this.query(sql, function (err, result) { if (callback) {