mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Refs #30380 -- Used cursor._executed in DatabaseOperations.last_executed_query() on MySQL.
Regression in a41b09266d
.
Thanks Tobias Krönke for the report.
This commit is contained in:
parent
a41b09266d
commit
994a00eb70
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class DatabaseOperations(BaseDatabaseOperations):
|
|||
# attribute where the exact query sent to the database is saved.
|
||||
# See MySQLdb/cursors.py in the source distribution.
|
||||
# MySQLdb returns string, PyMySQL bytes.
|
||||
return force_str(getattr(cursor, '_last_executed', None), errors='replace')
|
||||
return force_str(getattr(cursor, '_executed', None), errors='replace')
|
||||
|
||||
def no_limit_value(self):
|
||||
# 2**64 - 1, as recommended by the MySQL documentation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue