In 5.2, tests fail for PostgreSQL:
*hibernate-core:*
{noformat} org.hibernate.test.locking.LockModeTest > testLegacyCriteria FAILED java.lang.AssertionError
org.hibernate.test.locking.LockModeTest > testLegacyCriteriaAliasSpecific FAILED java.lang.AssertionError
org.hibernate.test.locking.LockModeTest > testQuery FAILED java.lang.AssertionError {noformat}
This happnes happens because PostgreSQL uses lock aliases , and the PostgreSQL Dialect logic seems to ignore it altogether. So, if we are providing an alias, we should be taking the LockMode associated to that specific alias. |
|