Add MySQL NDB error codes to sql-error-codes.xml [SPR-4635] #9312
Comments
Sébastien Launay commented The patch to add these error codes. |
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
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
The text was updated successfully, but these errors were encountered: