Bug #107434 | mysql-connector-python doesn't work with NO_BACKSLASH_ESCAPES SQL Mode | ||
---|---|---|---|
Submitted: | 31 May 2022 12:32 | Modified: | 6 Jun 2022 4:19 |
Reporter: | Paweł P | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | mysql-connector-python: 8.0.29, mysql: 5.7.37-40, libmysqlclient: 8.0.29 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[31 May 2022 12:32]
Paweł P
[31 May 2022 12:58]
Paweł P
mysql version added
[31 May 2022 13:33]
MySQL Verification Team
Hi Mr. P, Thank you for your bug report. Please, let us know the version of C API (libmysqlclient) that C/Python is linked to. Also, let us know the version of the server that you are using.
[31 May 2022 14:26]
Paweł P
libmysqlclient version added
[31 May 2022 17:10]
MySQL Verification Team
Thank you for the feedback.
[6 Jun 2022 4:19]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/Python 8.0.30 release, and here's the proposed changelog entry from the documentation team: The C Extension implementation did not function with the NO_BACKSLASH_ESCAPES SQL mode enabled. The fix is to internally call mysql_real_escape_string_quote() instead of mysql_real_escape_string_quote(). The workaround was to use the pure Python implementation (use_pure=True). Thank you for the bug report.