[SQL-CVS] [ sqlobject-Bugs-1696365 ] datetime validation is incorrect
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: SourceForge.net <no...@so...> - 2007-04-10 14:12:59
|
Bugs item #1696365, was opened at 2007-04-08 14:02 Message generated for change (Comment added) made by phd 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: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Shimizukawa Takayuki (shimi-ta) >Assigned to: Oleg Broytmann (phd) 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()) ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-04-10 18:12 Message: Logged In: YES user_id=4799 Originator: NO Fixed in the revisions 2504-2508 in the 0.7 and 0.8 branches and in the trunk. The fix will be included in the next releases = 0.7.5, 0.8.2. Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696365&group_id=74338 |