Bug #67306 | Connector/Python : String concatenation in the library causes UnicodeDecode Erro | ||
---|---|---|---|
Submitted: | 20 Oct 2012 10:58 | Modified: | 1 Dec 2012 0:35 |
Reporter: | Prasanna Santhanam | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | 1.0.7 | OS: | Any |
Assigned to: | Geert Vanderkelen | CPU Architecture: | Any |
Tags: | connector, MySQL, python |
[20 Oct 2012 10:58]
Prasanna Santhanam
[1 Nov 2012 11:50]
Geert Vanderkelen
Thanks for reporting this problem. We indeed need to decode username and password when they are unicode objects. There is no problem in Python v3 since strings are unicode anyway (hurray for Python 3!)
[1 Dec 2012 0:35]
John Russell
Added to changelog for 1.0.8: When a username or password was passed in as Unicode to Connector/Python, connection attempts failed with UnicodeDecodeError exceptions due to string concatenation of mixed-charset types. This issue affected programs running under Python 2, and did not affect Python 3.