Bugs item #1375617, was opened at 2005-12-07 22:27
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1375617&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: General
Group: SQLObject release (specify)
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Aaron Swartz (aaronsw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode queries choke
Initial Comment:
Using SQLObject 0.7rc1:
>>> db.Item.select(db.Item.q.title == u'foo').count()
[...]
TypeError: argument 1 must be str, not unicode
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-01-03 16:29
Message:
Logged In: YES
user_id=4799
This is dup for bug N 1243224. .select() and .selectBy()
require str, not unicode.
db.Item.select(db.Item.q.title ==
u'foo'.encode(dbEncoding)).count()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1375617&group_id=74338
|