#56 Unicode <-> CHAR(1)

MySQLdb-0.9.2
closed
Andy Dustman
MySQLdb (285)
5
2014-05-11
2003-06-15
Doug Wyatt
No

This line in Connection.init looks like it should be
removed:

        conv[FIELD_TYPE.CHAR] = u

CHAR, BOOL and TINY are all equivalent, and by default
mapped to int, which is definitely what you want for
BOOL.

It's only when enabling unicode translation that this line of
code executes and causes transformation of CHAR/BOOL/
TINY fields to unicode strings...

Sorry if this is a known issue, I didn't dig around too far.

Discussion

  • Andy Dustman
    Andy Dustman
    2003-09-07

    Logged In: YES
    user_id=71372

    This has been fixed in the current CVS tree.

     
  • Andy Dustman
    Andy Dustman
    2003-09-07

    Logged In: YES
    user_id=71372

    you are correct, fixed post-0.9.3b1