Bugs item #1696359, was opened at 2007-04-08 18:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696359&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: None
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Shimizukawa Takayuki (shimi-ta)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can not set ForeignKey and Unicode cols at the same time.
Initial Comment:
on SQLObject-0.8.1 py2.4
Can not set ForeignKey and Unicode cols at the same time.
test code::
class Foo(SQLObject):
name = UnicodeCol()
class User(SQLObject):
name = UnicodeCol()
foo = ForeignKey('Foo')
foo1 = Foo(name="Foo1")
foo2 = Foo(name="Foo2")
# raise UnicodeDecodeError
user = User(name=u'\u8ab0\u304b', fooID=u'2')
# raise UnicodeDecodeError
user.set(name=u'\u8ab0\u304b', fooID=u'2')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696359&group_id=74338
|