Skip to content

fix(model): generate ON CONFLICT ... DO UPDATE correctly#11666

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
huned:huned/bug-11665
Nov 22, 2019
Merged

fix(model): generate ON CONFLICT ... DO UPDATE correctly#11666
sushantdhiman merged 1 commit into
sequelize:masterfrom
huned:huned/bug-11665

Conversation

@huned
Copy link
Copy Markdown
Contributor

@huned huned commented Nov 11, 2019

Pull Request check-list

Please make sure to review and check all of these items:

Description of change

Closes #11665

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 11, 2019

Codecov Report

Merging #11666 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11666   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files          94       94           
  Lines        9190     9190           
=======================================
  Hits         8847     8847           
  Misses        343      343
Impacted Files Coverage Δ
lib/model.js 96.54% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3dd6a3...5f790d8. Read the comment docs.

@Restuta
Copy link
Copy Markdown

Restuta commented Dec 12, 2019

Do we know when this is going to be released? @sushantdhiman

@sushantdhiman
Copy link
Copy Markdown
Contributor

Today @Restuta

@huned
Copy link
Copy Markdown
Contributor Author

huned commented Dec 12, 2019

👍 🎉

@huned huned deleted the huned/bug-11665 branch December 12, 2019 03:56
@Restuta
Copy link
Copy Markdown

Restuta commented Dec 12, 2019

@sushantdhiman I see this one released https://github.com/sequelize/sequelize/releases/tag/v6.0.0-beta.4, any plans to release a patch for v5?

@sushantdhiman
Copy link
Copy Markdown
Contributor

Someone will have to backport that fix to target v5 branch

Restuta added a commit to Restuta/sequelize that referenced this pull request Dec 12, 2019
Restuta pushed a commit to Restuta/sequelize that referenced this pull request Dec 12, 2019
@Restuta
Copy link
Copy Markdown

Restuta commented Dec 12, 2019

@sushantdhiman I hope I did it right :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bulkCreate generates incorrect ON CONFLICT ... DO UPDATE clause when model has > 1 primary key field and column names differ from field names

3 participants