HHH-9635 - Fix SQLServer2005Dialect (and above) does not support read past locking
This commit is contained in:
parent
4cb84a110c
commit
b66eb91068
|
@ -80,7 +80,8 @@ public class SQLServer2005Dialect extends SQLServerDialect {
|
||||||
}
|
}
|
||||||
case PESSIMISTIC_READ: {
|
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: {
|
default: {
|
||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue