mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13698 : Hibernate does not recognize MySQL 8 error code 3572 as PessimisticLockException
(cherry picked from commit 0c1df5fc0de4d8bc1af12ca6a3eaa7667eea0f03)
This commit is contained in:
parent
24ff81d34e
commit
b865294e96
@ -527,7 +527,8 @@ public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() {
|
||||
@Override
|
||||
public JDBCException convert(SQLException sqlException, String message, String sql) {
|
||||
switch ( sqlException.getErrorCode() ) {
|
||||
case 1205: {
|
||||
case 1205:
|
||||
case 3572: {
|
||||
return new PessimisticLockException( message, sqlException, sql );
|
||||
}
|
||||
case 1207:
|
||||
|
Loading…
x
Reference in New Issue
Block a user