On Thu, Jan 19, 2006 at 12:40:46PM +0200, Max Ischenko wrote:
> Hello,
> 
> It seems that SQLObject doesn't allow unicode string when running SQL 
> statements, specifically to specify values for UnicodeCol keys. OTOH, when 
> creating an object, unicode strings is accepted and converted properly into 
> needed encoding, like utf-8.
> 
> Is it a bug or I'm doing something wrong?

   Neither. It's a misdesign. It lies so deeply in SQLObject it is hard to
fix it with a short patch.

   Do cls.selectBy(that_unicode_col=u'some string'.encode(dbEncoding))

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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to