Changes between Initial Version and Version 2 of Ticket #36111
- Timestamp:
- Jan 18, 2025, 1:40:41 PM (8 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36111
- Property Has patch set
-
Ticket #36111 – Description
initial v2 8 8 Traceback (most recent call last): 9 9 File "/django/source/tests/backends/tests.py", line 80, in test_last_executed_query_without_previous_query 10 connection.ops.last_executed_query(cursor, "SELECT %s;", ( Value(1),))10 connection.ops.last_executed_query(cursor, "SELECT %s;", (1,)) 11 11 File "/django/source/django/db/backends/oracle/operations.py", line 330, in last_executed_query 12 12 statement = statement.replace( … … 25 25 from django.db.backends.signals import connection_created 26 26 from django.db.backends.utils import CursorWrapper 27 +from django.db.models import Value28 27 from django.db.models.sql.constants import CURSOR 29 28 from django.test import ( … … 36 35 + if connection.vendor == "oracle": 37 36 + cursor.statement = None 38 + connection.ops.last_executed_query(cursor, "SELECT %s;", ( Value(1),))37 + connection.ops.last_executed_query(cursor, "SELECT %s;", (1,)) 39 38 40 39 def test_debug_sql(self):