Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use INSERT IGNORE when upserting to MariaDB #49890

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

fatkodima
Copy link
Member

Follow up to #49840.

In that PR, the logic for inserting with skipping duplicates was rewritten to use INSERT IGNORE.
As it turned out in #49840 (comment), this change generates a warning inside the database. So in this PR, I reverted that change. Also added a test case to avoid such change in the future.

cc @jhawthorn

Copy link
Member

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! ❤️

@jhawthorn jhawthorn merged commit 6049a22 into rails:main Nov 1, 2023
4 checks passed
@fatkodima fatkodima deleted the fix-mariadb-on_duplicate-skip branch November 1, 2023 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants