Bugs item #1547743, was opened at 2006-08-28 11:57
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1547743&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MySQL
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: dado1945 (dado1945)
Assigned to: Nobody/Anonymous (nobody)
Summary: sqlobject-0.7.1dev_r1884, Mysql and unicode
Initial Comment:
Please, check if suplied string is not unicode already
in mysqlconnection.py. There is extract how it could
look like:
import types
.....
if self.need_unicode:
# For MysqlDB 1.2.1 and later, we go
# encoding->unicode->charset (in
the mysql db)
if type(query) != types.UnicodeType:
query = unicode(query,
self.encoding)
return cursor.execute(query)
else:
return cursor.execute(query)
.....
Or use "isinstance(query, unicode)". I don't know what
different we will have and which one is better to use
however.
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-09-01 19:28
Message:
Logged In: YES
user_id=4799
But how can the query be unicode in _executeRetry()? The
query came from SQLObject so it must be an ascii string here...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1547743&group_id=74338
|