File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
hibernate-core/src/main/java/org/hibernate/dialect Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ public abstract class AbstractHANADialect extends Dialect {
186
186
187
187
private static final Boolean USE_LEGACY_BOOLEAN_TYPE_DEFAULT_VALUE = Boolean .FALSE ;
188
188
private static final Boolean TREAT_DOUBLE_TYPED_FIELDS_AS_DECIMAL_DEFAULT_VALUE = Boolean .FALSE ;
189
+ private static final String SQL_IGNORE_LOCKED = " ignore locked" ;
189
190
190
191
private final int maxLobPrefetchSize ;
191
192
@@ -1953,4 +1954,15 @@ public DmlTargetColumnQualifierSupport getDmlTargetColumnQualifierSupport() {
1953
1954
public boolean supportsSkipLocked () {
1954
1955
return getVersion ().isSameOrAfter (2 , 0 , 3 );
1955
1956
}
1957
+
1958
+ @ Override
1959
+ public String getForUpdateSkipLockedString () {
1960
+ return supportsSkipLocked () ? getForUpdateString () + SQL_IGNORE_LOCKED : getForUpdateString ();
1961
+ }
1962
+
1963
+ @ Override
1964
+ public String getForUpdateSkipLockedString (String aliases ) {
1965
+ return supportsSkipLocked () ?
1966
+ getForUpdateString (aliases ) + SQL_IGNORE_LOCKED : getForUpdateString (aliases );
1967
+ }
1956
1968
}
You can’t perform that action at this time.
0 commit comments