On 2/11/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
> > >> > ... but .queryAll() returns returns strings for UnicodeCols, so you
> > >>
> > >> This sounds like a bug to me...
> > >
> > > It's just a lower level.  connection.queryAll(sql) is essentially just
> > > a wrapper around DBAPI's "cursor.execute(sql);  return
> > > cursor.fetchall()".  It doesn't parse the SQL to see what the columns
> > > are, much less know what a UnicodeCol is.
> >
> > If your database is configured for UTF-8, .queryAll() should return unicode
> > instances.
>
> Theoretically, yes. But IIRC not every python DB-API driver works that way so 
> if SQLObject just passes the results up it may be possible. IMO, this is 
> still SQLObject bug though.

I saw MySQL has a command to set the charset but it looks like you'd
have to set it with a custom query.  Dunno about SQLite.  I don't care
about the others.

--
Mike Orr <[EMAIL PROTECTED]>
([EMAIL PROTECTED] address is semi-reliable)


-------------------------------------------------------
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&kid3432&bid#0486&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to