1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #35448 -- Fixed BackendTestCase.test_queries_logger() on Oracle < 23c.

This commit is contained in:
Mariusz Felisiak
2025-01-20 07:53:45 +01:00
committed by GitHub
parent c28f821c90
commit ec8cbea91e

View File

@@ -575,6 +575,7 @@ class BackendTestCase(TransactionTestCase):
@override_settings(DEBUG=True)
def test_queries_logger(self, mocked_logger):
sql = "SELECT 1" + connection.features.bare_select_suffix
sql = connection.ops.format_debug_sql(sql)
with connection.cursor() as cursor:
cursor.execute(sql)
params, kwargs = mocked_logger.debug.call_args