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

Commit ab99e150 by Sushant

fix(mssql/bulkInsertQuery): handle cases when no autoIncrement field exists, fix #8645

1 parent 5610656c
Showing with 1 additions and 1 deletions
......@@ -272,7 +272,7 @@ const QueryGenerator = {
}
if (allAttributes.indexOf(key) === -1) {
if (value === null && attributes[key].autoIncrement)
if (value === null && attributes[key] && attributes[key].autoIncrement)
return;
allAttributes.push(key);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!