[jOOQ/jOOQ#12453] We must do this only for non-ScalarSubquery Fields
This commit is contained in:
parent
10116e29c4
commit
d4e1b48953
@ -1422,9 +1422,17 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
|
||||
public final Condition compare(Comparator comparator, Field<T> field) {
|
||||
switch (comparator) {
|
||||
case IN:
|
||||
return in(field);
|
||||
if (field instanceof ScalarSubquery)
|
||||
return new CompareCondition(this, field, comparator);
|
||||
else
|
||||
return in(field);
|
||||
|
||||
case NOT_IN:
|
||||
return notIn(field);
|
||||
if (field instanceof ScalarSubquery)
|
||||
return new CompareCondition(this, field, comparator);
|
||||
else
|
||||
return notIn(field);
|
||||
|
||||
case IS_DISTINCT_FROM:
|
||||
return new IsDistinctFrom<>(this, nullSafe(field, getDataType()));
|
||||
case IS_NOT_DISTINCT_FROM:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user