HHH-18132 Fix minimum version check for skip locked on HANA
This commit is contained in:
parent
80219b6cd9
commit
c198fcfe1c
|
@ -1952,7 +1952,8 @@ public abstract class AbstractHANADialect extends Dialect {
|
|||
|
||||
@Override
|
||||
public boolean supportsSkipLocked() {
|
||||
return getVersion().isSameOrAfter(2, 0, 3);
|
||||
// HANA supports IGNORE LOCKED since HANA 2.0 SPS3 (2.0.030)
|
||||
return getVersion().isSameOrAfter(2, 0, 30);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1965,4 +1966,9 @@ public abstract class AbstractHANADialect extends Dialect {
|
|||
return supportsSkipLocked() ?
|
||||
getForUpdateString(aliases) + SQL_IGNORE_LOCKED : getForUpdateString(aliases);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getForUpdateString(LockMode lockMode) {
|
||||
return super.getForUpdateString(lockMode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue