Pass options to the execute command.
This commit is contained in:
parent
b27d1ce32f
commit
8569c9812a
|
@ -234,7 +234,7 @@ MySQL.prototype.updateOrCreate = MySQL.prototype.save =
|
|||
|
||||
sql.merge(ParameterizedSQL.join(setValues, ','));
|
||||
|
||||
this.execute(sql.sql, sql.params, function(err, info) {
|
||||
this.execute(sql.sql, sql.params, options, function(err, info) {
|
||||
if (!err && info && info.insertId) {
|
||||
data.id = info.insertId;
|
||||
}
|
||||
|
@ -483,4 +483,3 @@ MySQL.prototype.buildExpression = function(columnName, operator, operatorValue,
|
|||
require('./migration')(MySQL, mysql);
|
||||
require('./discovery')(MySQL, mysql);
|
||||
require('./transaction')(MySQL, mysql);
|
||||
|
||||
|
|
Loading…
Reference in New Issue