Thread: [SQL-CVS] r2740 - in SQLObject/branches/0.7: docs sqlobject/mysql
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2007-07-12 15:31:40
|
Author: phd Date: 2007-07-12 09:31:34 -0600 (Thu, 12 Jul 2007) New Revision: 2740 Modified: SQLObject/branches/0.7/docs/News.txt SQLObject/branches/0.7/sqlobject/mysql/mysqlconnection.py Log: A patch by Brian Cole <br...@te...>: MySQLConnection now recognizes Time columns when drawing the database scheme from DB. Modified: SQLObject/branches/0.7/docs/News.txt =================================================================== --- SQLObject/branches/0.7/docs/News.txt 2007-07-12 15:25:13 UTC (rev 2739) +++ SQLObject/branches/0.7/docs/News.txt 2007-07-12 15:31:34 UTC (rev 2740) @@ -15,7 +15,7 @@ * Minor correction in the tests: we fully support EnumCol in Postgres. -* MySQLConnection now recognizes Enum and Double columns when drawing the +* MySQLConnection now recognizes Enum, Double and Time columns when drawing the database scheme from DB. SQLObject 0.7.7 Modified: SQLObject/branches/0.7/sqlobject/mysql/mysqlconnection.py =================================================================== --- SQLObject/branches/0.7/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:25:13 UTC (rev 2739) +++ SQLObject/branches/0.7/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:31:34 UTC (rev 2740) @@ -219,6 +219,8 @@ 'varchar': False} elif t.startswith('datetime'): return col.DateTimeCol, {} + elif t.startswith('time'): + return col.TimeCol, {} elif t.startswith('bool'): return col.BoolCol, {} elif t.startswith('tinyblob'): |