summaryrefslogtreecommitdiff
path: root/sequelize-bulkinsert.patch
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:52 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:52 +0200
commit590389198bc0a7d9ce00395287c715a4adbc54b0 (patch)
treeaee0ff1dbf286dee0425d34ca08b047c3bcc1f44 /sequelize-bulkinsert.patch
parenta5b43e106ae8a3441690ed7d32c711f0200d4be7 (diff)
downloadprocessor-590389198bc0a7d9ce00395287c715a4adbc54b0.tar.gz
processor-590389198bc0a7d9ce00395287c715a4adbc54b0.zip
2.14.0 rewrite
Diffstat (limited to 'sequelize-bulkinsert.patch')
-rw-r--r--sequelize-bulkinsert.patch19
1 files changed, 19 insertions, 0 deletions
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(() => {