Author: phd
Date: 2007-07-12 09:32:23 -0600 (Thu, 12 Jul 2007)
New Revision: 2742
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/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.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-07-12 15:32:07 UTC (rev 2741)
+++ SQLObject/branches/0.9/docs/News.txt 2007-07-12 15:32:23 UTC (rev 2742)
@@ -229,7 +229,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.9/sqlobject/mysql/mysqlconnection.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:32:07 UTC (rev 2741)
+++ SQLObject/branches/0.9/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:32:23 UTC (rev 2742)
@@ -270,6 +270,8 @@
return col.DateTimeCol, {}
elif t.startswith('date'):
return col.DateCol, {}
+ elif t.startswith('time'):
+ return col.TimeCol, {}
elif t.startswith('timestamp'):
return col.TimestampCol, {}
elif t.startswith('bool'):
|