Bug #73867 | last_executed_query returns str not unicode | ||
---|---|---|---|
Submitted: | 10 Sep 2014 1:33 | Modified: | 6 May 2022 14:34 |
Reporter: | Brian May | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 1.2.3 | OS: | Linux |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[10 Sep 2014 1:33]
Brian May
[23 Sep 2014 9:36]
Geert Vanderkelen
Verified for Connector/Python v1.2. Connector/Python v2.0 will try to decode the statement and return it as a unicode. It would be indeed good to decode the statement in the Django backend for Connector/Python v1.2. The not so elegant workaround is to decode the statement when needed.
[2 Mar 2015 23:28]
Sandro Tosi
v2.0.3 didnt include this fix: can we have that in the next version please?
[4 May 2022 14:34]
Nuno Mariz
Posted by developer: The last_executed_query() method is now part of mysql.connector.django.operations and it's inherited by the official Django MySQL driver.