summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2022-04-13 20:15:51 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-14 06:46:42 +0200
commita32876606f1346d4fbdab3813061f8a79cb23ac2 (patch)
treeef2909fe3612893b00114b0023f56781bb20788e /django/db/backends/postgresql/operations.py
parent2eea361eff58dd98c409c5227064b901f41bd0d6 (diff)
downloaddjango-a32876606f1346d4fbdab3813061f8a79cb23ac2.tar.gz
Removed unneeded code in explain_query_prefix()
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index ab451ac63f..ec162d53f4 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -320,7 +320,7 @@ class DatabaseOperations(BaseDatabaseOperations):
for valid_option in self.explain_options:
value = options.pop(valid_option, None)
if value is not None:
- extra[valid_option.upper()] = value
+ extra[valid_option] = value
prefix = super().explain_query_prefix(format, **options)
if format:
extra["FORMAT"] = format