Hibernate does not recognize MySQL 8 error code 3572 as PessimisticLockException

Description

o.h.test.jpa.lock.LockExceptionTests#L93 fails with MySQL 8.0

Stacktrace:

Looking at test it seems to me that error is expected, but SQLException isn't converted to expected exception.

Details from SQLException:
Error code: 3572
SQL State: HY000

Environment

MySQL 8.0 (8.0.12)
MySQL Connector/J 8.0.18
org.hibernate.dialect.MySQL8Dialect

Status

Assignee

Gail Badner

Reporter

Martin Šimka

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure