Different result-type depending on use_unicode=True/False
MySQL database connector for Python programming
Brought to you by:
adustman
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
Simple script to reproduce the reported behavior
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?
Logged In: YES
user_id=553904
charset: utf8
collate: utf8_general_ci
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.