mirror of
https://github.com/django/django.git
synced 2025-05-07 15:36: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)
|
@override_settings(DEBUG=True)
|
||||||
def test_queries_logger(self, mocked_logger):
|
def test_queries_logger(self, mocked_logger):
|
||||||
sql = "SELECT 1" + connection.features.bare_select_suffix
|
sql = "SELECT 1" + connection.features.bare_select_suffix
|
||||||
|
sql = connection.ops.format_debug_sql(sql)
|
||||||
with connection.cursor() as cursor:
|
with connection.cursor() as cursor:
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
params, kwargs = mocked_logger.debug.call_args
|
params, kwargs = mocked_logger.debug.call_args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user