HHH-18242 23ai supports natively Tuple Comparison

This commit is contained in:
LLEFEVRE 2024-06-06 17:33:46 +02:00 committed by Christian Beikov
parent 5a889f7d56
commit ba88e401c2
1 changed files with 7 additions and 1 deletions

View File

@ -62,6 +62,7 @@ import org.hibernate.type.descriptor.jdbc.JdbcType;
* A SQL AST translator for Oracle. * A SQL AST translator for Oracle.
* *
* @author Christian Beikov * @author Christian Beikov
* @author Loïc Lefèvre
*/ */
public class OracleSqlAstTranslator<T extends JdbcOperation> extends SqlAstTranslatorWithUpsert<T> { public class OracleSqlAstTranslator<T extends JdbcOperation> extends SqlAstTranslatorWithUpsert<T> {
@ -568,8 +569,13 @@ public class OracleSqlAstTranslator<T extends JdbcOperation> extends SqlAstTrans
List<SqlSelection> lhsExpressions, List<SqlSelection> lhsExpressions,
SqlTuple tuple, SqlTuple tuple,
ComparisonOperator operator) { ComparisonOperator operator) {
if(getDialect().getVersion().isSameOrAfter(23)) {
super.renderSelectTupleComparison(lhsExpressions, tuple, operator);
}
else {
emulateSelectTupleComparison(lhsExpressions, tuple.getExpressions(), operator, true); emulateSelectTupleComparison(lhsExpressions, tuple.getExpressions(), operator, true);
} }
}
@Override @Override
protected void renderPartitionItem(Expression expression) { protected void renderPartitionItem(Expression expression) {