-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support H2 version 2+ in the jdbc/h2 adapter (Fixes #1817)
This required a few different changes: * IDENTITY() can no longer be used, so switch to RETURN_GENERATED_KEYS approach for getting the inserted primary key values, borrowed from the jdbc/mysql adapter. This also works in version 1. * BIGINT IDENTITY no longer works for 64-bit auto incrementing columns. Switch to BIGINT AUTO_INCREMENT, which also works in version 1. * TRUE and FALSE are now used as the boolean literals, which also works in version 1. * The LIMIT -1 hack no longer works and is no longer needed, so don't use it in version 2. * The special literalization of blobs used in version 1 no longer works and is no longer needed, so don't use it in version 2. This was tested with jdbc-h2 2.0.204, 1.4.197, and 1.3.175.
- Loading branch information
1 parent
2d7a574
commit ace201d
Showing
2 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ace201d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for quick turnaround!