HHH-13698 : Hibernate does not recognize MySQL 8 error code 3572 as PessimisticLockException
This commit is contained in:
parent
a7f017c3dc
commit
0c1df5fc0d
|
@ -532,7 +532,8 @@ public class MySQLDialect extends Dialect {
|
||||||
@Override
|
@Override
|
||||||
public JDBCException convert(SQLException sqlException, String message, String sql) {
|
public JDBCException convert(SQLException sqlException, String message, String sql) {
|
||||||
switch ( sqlException.getErrorCode() ) {
|
switch ( sqlException.getErrorCode() ) {
|
||||||
case 1205: {
|
case 1205:
|
||||||
|
case 3572: {
|
||||||
return new PessimisticLockException( message, sqlException, sql );
|
return new PessimisticLockException( message, sqlException, sql );
|
||||||
}
|
}
|
||||||
case 1207:
|
case 1207:
|
||||||
|
|
Loading…
Reference in New Issue