Add MySQL NDB error codes to sql-error-codes.xml [SPR-4635] #9312
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
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: