HHH-18132 Fix minimum version check for skip locked on HANA

This commit is contained in:
fmusolino 2024-05-20 09:03:53 +02:00 committed by Christian Beikov
parent 80219b6cd9
commit c198fcfe1c
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
}