mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-9635 - Fix SQLServer2005Dialect (and above) does not support read past locking
This commit is contained in:
parent
034afb96bf
commit
4fb11c9919
@ -76,11 +76,12 @@ public String appendLockHint(LockOptions lockOptions, String tableName) {
|
||||
case UPGRADE:
|
||||
case PESSIMISTIC_WRITE:
|
||||
case WRITE: {
|
||||
return tableName + " with (updlock, rowlock" + noWaitStr + " )";
|
||||
return tableName + " with (updlock, rowlock" + noWaitStr + ")";
|
||||
}
|
||||
case PESSIMISTIC_READ: {
|
||||
return tableName + " with (holdlock, rowlock" + noWaitStr + " )";
|
||||
}
|
||||
return tableName + " with (holdlock, rowlock" + noWaitStr + ")";
|
||||
}case UPGRADE_SKIPLOCKED:
|
||||
return tableName + " with (updlock, rowlock, readpast" + noWaitStr + ")";
|
||||
default: {
|
||||
return tableName;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user