mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on PostgreSQL 16+.
This commit is contained in:
@@ -85,6 +85,8 @@ class ExplainTests(TestCase):
|
||||
{"settings": True},
|
||||
{"analyze": True, "wal": True},
|
||||
]
|
||||
if connection.features.is_postgresql_16:
|
||||
test_options.append({"generic_plan": True})
|
||||
for options in test_options:
|
||||
with self.subTest(**options), transaction.atomic():
|
||||
with CaptureQueriesContext(connection) as captured_queries:
|
||||
|
||||
Reference in New Issue
Block a user