diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java index c96a3eac9b..47ad18f3dd 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java @@ -76,11 +76,12 @@ public class SQLServer2005Dialect extends SQLServerDialect { 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; }