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

Add MySQL NDB error codes to sql-error-codes.xml [SPR-4635] #9312

Closed
spring-projects-issues opened this issue Mar 27, 2008 · 2 comments
Closed

Add MySQL NDB error codes to sql-error-codes.xml [SPR-4635] #9312

spring-projects-issues opened this issue Mar 27, 2008 · 2 comments

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Mar 27, 2008

Sébastien Launay opened SPR-4635 and commented

NDB Error codes [1] are missing from the mapping so we can not rely on DataIntegrityViolationException when inserting an existing tuple for example :

org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO ... VALUES (?,?,?,0)]; SQL state [HY000]; error code [1296]; Got error 630 'Tuple already existed when attempting to insert' from NDB; nested exception is java.sql.SQLException: Got error 630 'Tuple already existed when attempting to insert' from NDB

[1] http://dev.mysql.com/doc/ndbapi/en/ndb-error-codes-constraintviolation.html


Affects: 2.0.8, 2.5.2

Attachments:

Backported to: 2.0.9

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 27, 2008

Sébastien Launay commented

The patch to add these error codes.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 27, 2008

Juergen Hoeller commented

Thanks for the suggestion! I've added those error codes for both Spring 2.5.3 and Spring 2.0.9.

Juergen

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

Successfully merging a pull request may close this issue.

None yet
2 participants