On Tue, Nov 27, 2007 at 07:48:11PM +0100, Markus Gritsch wrote: > On 27/11/2007, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > There were reports that MySQLdb 1.2.1+ requires unicode, not merely > > allows it. > > I cannot confirm this.
It very much could be that the report was about a beta versions of MySQLdb (1.2.1b1, e.g.) but someone hurried and created a patch that forces SQLObject to always use unicode. > I use MySQL_python-1.2.2-py2.5-win32.egg and > the following example works fine. > class Person(SQLObject): > uname = UnicodeCol() > sname = StringCol() It doesn't matter if a column is StringCol or UnicodeCol - SQLObject converts query strings at the lowest level, just before calling cursor.execute(). IWBN if you run the tests using MySQLdb directly, or at least patch SQLObject to not set "need_unicode" in MySQLConnection. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss