diff options
| author | JaeHyuck Sa <wogur981208@gmail.com> | 2026-01-15 00:09:14 +0900 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-14 13:31:15 -0500 |
| commit | 4ce4ed72a4ddc7d101df0fd31f1d0e449d8af501 (patch) | |
| tree | b3d19dea9dfa3dad6caa39a0ebb106dd8a284a43 /django | |
| parent | 6a596373d464d1d8e9014d952286ab5f6d2a9983 (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.py | 2 |
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 ): |
