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

Update SQL error code mapping for H2 1.3.154 [SPR-8235] #12883

Closed
spring-projects-issues opened this issue Apr 8, 2011 · 2 comments
Closed
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 8, 2011

Oleg Alexeyev opened SPR-8235 and commented

Since H2 1.3.154 SQL error codes has changed in order to utilize commonly used ones. See the thread: http://groups.google.com/group/h2-database/browse_thread/thread/e4f6e77e3eebc1d4 and the change log: http://www.h2database.com/html/changelog.html.

This makes duplicate key condition undetected, DataIntegrityViolationException is thrown instead of DuplicateKeyException.

In order to fix this error code 23505 needs to be added to duplicateKeyCodes property of H2 bean in org/springframework/jdbc/support/sql-error-codes.xml.


Affects: 3.0.5

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Thomas, could you have a look at this please?

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Backported to 3.0.7, for release in late December.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant