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.
*
* @author Christian Beikov
* @author Loïc Lefèvre
*/
public class OracleSqlAstTranslator<T extends JdbcOperation> extends SqlAstTranslatorWithUpsert<T> {
@ -568,7 +569,12 @@ public class OracleSqlAstTranslator<T extends JdbcOperation> extends SqlAstTrans
List<SqlSelection> lhsExpressions,
SqlTuple tuple,
ComparisonOperator operator) {
emulateSelectTupleComparison( lhsExpressions, tuple.getExpressions(), operator, true );
if(getDialect().getVersion().isSameOrAfter(23)) {
super.renderSelectTupleComparison(lhsExpressions, tuple, operator);
}
else {
emulateSelectTupleComparison(lhsExpressions, tuple.getExpressions(), operator, true);
}
}
@Override