QueryEntity Difference between = and includes

Certified Senior Developer
Hi,
We are experiencing the below behavior while using queryEntity.
The queryFilter with "=" operator is returning zero records whereas the filter with "includes" operator returns more records. We are using Oracle database, I ran the query with "=" and "like" operator and able to fetch records in both case.
a!queryFilter(
field:"department",
operator:"=",
value:"Engineering"
)


a!queryFilter(
field:"department",
operator:"includes",
value:"Engineering"
)
Any suggestions/comments are appreciated on this. Thanks!

OriginalPostID-240015

  Discussion posts and replies are publicly visible

Parents
  • I recently had this issue with Oracle and the cause was a line feed (char(10)) after the data I was querying. You could notice when copying the result and pasting it into the SQL editor, it pasted a blank line after the data. My resolution was to simply add char(10) to the queryFilter, such as:

    a!queryFilter(
    field:"department",
    operator:"=",
    value:"Engineering" & char(10)
    )

    Might be worth a shot, would be a quick test.
Reply
  • I recently had this issue with Oracle and the cause was a line feed (char(10)) after the data I was querying. You could notice when copying the result and pasting it into the SQL editor, it pasted a blank line after the data. My resolution was to simply add char(10) to the queryFilter, such as:

    a!queryFilter(
    field:"department",
    operator:"=",
    value:"Engineering" & char(10)
    )

    Might be worth a shot, would be a quick test.
Children
No Data