Menu

#210 Different result-type depending on use_unicode=True/False

MySQLdb-1.2
closed
MySQLdb (285)
5
2014-08-23
2006-09-15
No

Hi,

I am using MySQL-python.exe-1.2.2b1.win32-py2.4.exe.

When the attached file is run, it prints

Set(['+'])

When it is run with use_unicode=True in the connect()
method, the result type changes and it prints

+

Is this a bug or a feature? Kind regards,
Markus

Discussion

  • Markus Gritsch

    Markus Gritsch - 2006-09-15

    Simple script to reproduce the reported behavior

     
  • Andy Dustman

    Andy Dustman - 2006-09-15

    Logged In: YES
    user_id=71372

    Bug. You shouldn't be getting a Set back; the
    use_unicode=True behavior is correct.

    What is your default character set and collation?

     
  • Markus Gritsch

    Markus Gritsch - 2006-09-15

    Logged In: YES
    user_id=553904

    charset: utf8
    collate: utf8_general_ci

     
  • Andy Dustman

    Andy Dustman - 2007-03-04

    Logged In: YES
    user_id=71372
    Originator: NO

    Believed fixed in 1.2.2. SET column support had to be removed due to a bug in MySQL.

     

Log in to post a comment.