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
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

Sébastien Launay commented

The patch to add these error codes.

@spring-projects-issues
Copy link
Collaborator Author

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

@spring-projects-issues spring-projects-issues added in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 2.5.3 milestone Jan 11, 2019
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) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants