Comment 1 for bug 499410

Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

revno: 171
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-CHARSET
timestamp: Wed 2009-12-23 09:52:48 +0100
message:
  Fixing unicode usage for both Python 2.4+ and 3.1

  * Setting 'use_unicode' at connection time is now working.
  * conversion.py: removing regular expression for quoting backslashes.
  * Adding test case for bug lp:499410

  Py3k specific:
  * Strings from MySQL are decoded to the given character when use_unicode
    is false
  * The statement is encoded just before sending it to the MySQL server.
    Internally, all is done in unicode.
  * In conversion.py: removing _unicode_to_mysql, adding _bytes_to_mysql
  * MySQLCursor.__unicode__ is obsolete and replaced with __str__
  * Removing tests for which the methods were deleted.