Skip to content

Commit ff2d510

Browse files
committed
fix: make sure to handle equal operator as contains when there is a collection
1 parent 22f379a commit ff2d510

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/com/orientechnologies/orient/core/sql/parser/OEqualsCompareOperator.java

+5
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ else if (iRight instanceof OResult) {
164164
return couple[0].equals(couple[1]);
165165
}
166166

167+
// COLLECTION CONTAINS
168+
if (OMultiValue.isMultiValue(iLeft) && !OMultiValue.isMultiValue(iRight)) {
169+
return OMultiValue.contains(iLeft, iRight);
170+
}
171+
167172
// ALL OTHER CASES
168173
try {
169174
final Object right = OType.convert(iRight, iLeft.getClass());

0 commit comments

Comments
 (0)