mirror of
https://github.com/django/django.git
synced 2025-11-29 15:01:18 +00:00
Refs #35448 -- Fixed BackendTestCase.test_queries_logger() on Oracle < 23c.
This commit is contained in:
parent
c28f821c90
commit
ec8cbea91e
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue