summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJaeHyuck Sa <wogur981208@gmail.com>2026-01-15 00:09:14 +0900
committerJacob Walls <jacobtylerwalls@gmail.com>2026-01-14 13:31:15 -0500
commit4ce4ed72a4ddc7d101df0fd31f1d0e449d8af501 (patch)
treeb3d19dea9dfa3dad6caa39a0ebb106dd8a284a43 /django
parent6a596373d464d1d8e9014d952286ab5f6d2a9983 (diff)
Fixed #36821 -- Treated empty strings as NULL for iexact lookups on Oracle.
Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
Diffstat (limited to 'django')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 8fffce5dec..e3e6100f24 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1444,7 +1444,7 @@ class Query(BaseExpression):
# DEFAULT_DB_ALIAS isn't nice but it's the best that can be done here.
# A similar thing is done in is_nullable(), too.
if (
- lookup_name == "exact"
+ lookup_name in ("exact", "iexact")
and lookup.rhs == ""
and connections[DEFAULT_DB_ALIAS].features.interprets_empty_strings_as_nulls
):