不要怂,就是干,撸起袖子干!

Commit f193e4c4 by Mick Hansen

Merge pull request #4453 from poying/master

Set a default options value for QueryInterface.prototype.bulkInsert
2 parents 533a309a 86173e84
Showing with 1 additions and 0 deletions
......@@ -571,6 +571,7 @@ QueryInterface.prototype.upsert = function(tableName, values, updateValues, mode
};
QueryInterface.prototype.bulkInsert = function(tableName, records, options, attributes) {
options = options || {};
options.type = QueryTypes.INSERT;
var sql = this.QueryGenerator.bulkInsertQuery(tableName, records, options, attributes);
return this.sequelize.query(sql, options);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!