Closed JPDSousa closed 4 months ago
Thank you for this bug report! Unfortunately, we have a very low capacity work on this at the moment. I am happy to review PRs if you would like to make this change to support Oracle.
No worries! I got a proposal for a PR we can start with. I'll open it as soon as I have some free time.
Describe the bug Expressions involving an equality operator and an empty string always evaluate to
false
when using Django + Oracle. This seems to be specific to the Django transpiler.To Reproduce Here's a test case that reproduces this behavior:
Which fails with: tl;dr: The query returns no results
The generated query is:
Expected behavior The generated query should find
dummy_username
.Environment: Python version: 3.11.7 Django version: 4.2.12 scim-filter-parser version: 0.5.1
Additional context According to this article (and my own tests via
sqlplus
),UPPER("AUTH_USER"."FIRST_NAME") = UPPER('')
will always evaluate tofalse
, even when"AUTH_USER"."FIRST_NAME"
is an empty string.