Use "GENERATED BY DEFAULT AS IDENTITY" for h2 2.0+ #2372
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #2362
Change H2 2.0's autoIncrement syntax from AUTO_INCREMENT GENERATED BY DEFAULT AS IDENTITY. Keep 1.x as-is
Dev Handoff Notes (Internal Use)
Links
Testing
Dev Verification
Old AUTO_INCREMENT syntax worked for me with 2.0 even, but users reported issues with it. Checked that the new syntax works with my 2.0 setup through both manual and automated tests
┆Issue is synchronized with this Jira Bug by Unito