From 590389198bc0a7d9ce00395287c715a4adbc54b0 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 14 Jul 2017 18:58:52 +0200 Subject: 2.14.0 rewrite --- sequelize-bulkinsert.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sequelize-bulkinsert.patch (limited to 'sequelize-bulkinsert.patch') diff --git a/sequelize-bulkinsert.patch b/sequelize-bulkinsert.patch new file mode 100644 index 0000000..eaf793b --- /dev/null +++ b/sequelize-bulkinsert.patch @@ -0,0 +1,19 @@ +*** /tmp/a 2017-07-14 18:23:00.471411882 +0200 +--- node_modules/sequelize/lib/model.js 2017-07-14 18:25:01.281686417 +0200 +*************** +*** 2349,2360 **** +--- 2349,2362 ---- + } + + return this.QueryInterface.bulkInsert(this.getTableName(options), records, options, attributes).then(results => { ++ /* + if (Array.isArray(results)) { + results.forEach((result, i) => { + instances[i].set(this.primaryKeyAttribute, result[this.rawAttributes[this.primaryKeyAttribute].field], {raw: true}); + }); + } + return results; ++ */ + }); + } + }).then(() => { -- cgit v1.3.1