From 4ce4ed72a4ddc7d101df0fd31f1d0e449d8af501 Mon Sep 17 00:00:00 2001 From: JaeHyuck Sa Date: Thu, 15 Jan 2026 00:09:14 +0900 Subject: Fixed #36821 -- Treated empty strings as NULL for iexact lookups on Oracle. Signed-off-by: JaeHyuck Sa --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/db/models/sql') 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 ): -- cgit v1.3