Skip to content

Conversation

nakamura-to
Copy link
Member

When executing SQL equivalent to INSERT IGNORE on a table with an auto-increment primary key, an error occurred due to the inability to retrieve the auto-incremented value. This pull request fixes that error.

Additionally, adjustments have been made to align the behavior across multiple DBMS dialects when the auto-increment primary key is implicitly used as a key for duplicate checks.

In particular, when using H2 Database, Oracle Database, or SQL Server, it is recommended to explicitly specify the key used for duplicate checks. In this pull request, the Criteria API's Entityql has been updated to allow specifying the key as well.

@github-actions github-actions bot added the fix label Aug 31, 2024
@nakamura-to nakamura-to merged commit 987012d into master Aug 31, 2024
11 checks passed
@nakamura-to nakamura-to deleted the fix/insert-ignore branch August 31, 2024 09:27
@nakamura-to
Copy link
Member Author

Related discussion is #1161.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant