mirror of
https://github.com/django/django.git
synced 2025-05-06 23:16:29 +00:00
Refs #35448 -- Fixed BackendTestCase.test_queries_logger() on Oracle < 23c.
This commit is contained in:
parent
c28f821c90
commit
ec8cbea91e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user