HHH-18132 Add support for skip locked for HANA.

This commit is contained in:
fmusolino 2024-05-17 01:10:04 +02:00 committed by Christian Beikov
parent 0d35d9d5b1
commit a53d4317a3
2 changed files with 10 additions and 0 deletions

View File

@ -1948,4 +1948,9 @@ public abstract class AbstractHANADialect extends Dialect {
public DmlTargetColumnQualifierSupport getDmlTargetColumnQualifierSupport() {
return DmlTargetColumnQualifierSupport.TABLE_ALIAS;
}
@Override
public boolean supportsSkipLocked() {
return getVersion().isSameOrAfter(2, 0, 3);
}
}

View File

@ -273,4 +273,9 @@ public class HANASqlAstTranslator<T extends JdbcOperation> extends AbstractSqlAs
public void visitValuesTableReference(ValuesTableReference tableReference) {
emulateValuesTableReferenceColumnAliasing( tableReference );
}
@Override
protected String getSkipLocked() {
return "ignore locked";
}
}