From a32876606f1346d4fbdab3813061f8a79cb23ac2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 13 Apr 2022 20:15:51 -0400 Subject: [PATCH] Removed unneeded code in explain_query_prefix() --- django/db/backends/postgresql/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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