Error messages could have incomplete unicode characters
Bug #499814 reported by
Geert JM Vanderkelen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Connector/Python |
Fix Released
|
Medium
|
Geert JM Vanderkelen |
Bug Description
The error message returned by MySQL could include incomplete unicode characters. This results in an InterfaceError when handling the error.
"Failed executing the operation; %s" % e)
mysql.connector
Fix is to 'ignore' the incomplete characters:
self.errmsg = buf.decode(
Related branches
Changed in myconnpy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
revno: 172
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-CHARSET
timestamp: Wed 2009-12-23 14:38:43 +0100
message:
Fix for broken unicode characters when MySQL trimed the errmsg
* On a syntax error, for example, the error message is trimmed by the
MySQL server to a certain ammout of bytes. This can lead in broken
unicode characters. We fix it by ignoring the characters, as they
are seldom (read never) needed.
* Added test case for bug lp:499814