Hi,

This topic has been discussed a few times before but let me raise it again to 
get a definitive answer.

Using the following definition:

class T1(SQLObject):
    name = UnicodeCol(length=40, alternateID=True)

And the following expression:
>>> list(T1.select(T1.q.name==u'Greek \u03a9'))

Yields an error with MySQL and works just fine for sqlite and PostgreSQL. I 
guess that's because MySQL Python driver cannot handle unicode queries while 
others can.

The question is whether this behavior will be continued forever or has a chance 
to be fixed (either in current codebase or in SQLObject 2). Oleg said before 
that this is a "feature" but I respectfully disagree. It's a bug only if for no 
other reason but making the code non-portable, leaking underlying 
implementation detail to the user. E 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to