diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-04-21 12:17:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 12:17:05 +0200 |
commit | 994a00eb70969e4fd8f7a30a95122e2f0411ff48 (patch) | |
tree | 3df719183a03a03cd42926d43babdeb4875ba305 /django/db/backends/mysql/operations.py | |
parent | a41b09266dcdd01036d59d76fe926fe0386aaade (diff) | |
download | django-994a00eb70969e4fd8f7a30a95122e2f0411ff48.tar.gz |
Refs #30380 -- Used cursor._executed in DatabaseOperations.last_executed_query() on MySQL.
Regression in a41b09266dcdd01036d59d76fe926fe0386aaade.
Thanks Tobias Krönke for the report.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r-- | django/db/backends/mysql/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py index a0d1095edd..231665847a 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -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 |