HHH-10890 - PostgreSQL does not consider alias-specific LockMode
This commit is contained in:
parent
5cb5b68f9c
commit
0b34910b22
|
@ -287,7 +287,10 @@ public class PostgreSQL81Dialect extends Dialect {
|
|||
}
|
||||
}
|
||||
}
|
||||
LockMode lockMode = lockOptions.getLockMode();
|
||||
LockMode lockMode = lockOptions.getAliasSpecificLockMode( aliases );
|
||||
if (lockMode == null ) {
|
||||
lockMode = lockOptions.getLockMode();
|
||||
}
|
||||
switch ( lockMode ) {
|
||||
case UPGRADE:
|
||||
return getForUpdateString(aliases);
|
||||
|
|
Loading…
Reference in New Issue