File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
hibernate-core/src/main/java/org/hibernate/sql/ast/spi Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7643,9 +7643,6 @@ public void visitInListPredicate(InListPredicate inListPredicate) {
7643
7643
.getExpressions ().get ( 0 );
7644
7644
}
7645
7645
else if ( !dialect .supportsRowValueConstructorSyntaxInInList () ) {
7646
- final ComparisonOperator comparisonOperator = inListPredicate .isNegated () ?
7647
- ComparisonOperator .NOT_EQUAL :
7648
- ComparisonOperator .EQUAL ;
7649
7646
// Some DBs like Oracle support tuples only for the IN subquery predicate
7650
7647
if ( dialect .supportsRowValueConstructorSyntaxInInSubQuery () && dialect .supportsUnionAll () ) {
7651
7648
inListPredicate .getTestExpression ().accept ( this );
@@ -7664,20 +7661,17 @@ else if ( !dialect.supportsRowValueConstructorSyntaxInInList() ) {
7664
7661
appendSql ( CLOSE_PARENTHESIS );
7665
7662
}
7666
7663
else {
7667
- if (inListPredicate .isNegated ()) {
7668
- appendSql ("not " );
7669
- }
7670
7664
appendSql ( OPEN_PARENTHESIS );
7671
7665
String separator = NO_SEPARATOR ;
7672
7666
for (Expression expression : listExpressions ) {
7673
7667
appendSql (separator );
7674
7668
emulateTupleComparison (
7675
7669
lhsTuple .getExpressions (),
7676
7670
SqlTupleContainer .getSqlTuple (expression ).getExpressions (),
7677
- ComparisonOperator .EQUAL ,
7671
+ ComparisonOperator .NOT_EQUAL ,
7678
7672
true
7679
7673
);
7680
- separator = " or " ;
7674
+ separator = " and " ;
7681
7675
}
7682
7676
appendSql ( CLOSE_PARENTHESIS );
7683
7677
}
You can’t perform that action at this time.
0 commit comments