Bugs item #1696365, was opened at 2007-04-08 19:02
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=1696365&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: datetime validation is incorrect
Initial Comment:
on SQLObject-0.8.1 py2.4 with SQLite3
When set datetime value to DateCol, expect date spec string(as '2007-04-08'), but actual data is datetime spec string(as '2007-04-08 18:50:37.078000').
test code::
class SomeData(SQLObject):
date = DateCol()
datetime = DateTimeCol()
d = datetime.datetime.now()
v = SomeData(date=d.date(),datetime=d)
v.set(date=d, datetime=d)
assert str(v.datetime) == str(d) # raise
assert str(v.date) == str(d.date())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696365&group_id=74338
|