Author: phd
Date: 2007-07-12 09:32:07 -0600 (Thu, 12 Jul 2007)
New Revision: 2741
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/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.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-12 15:31:34 UTC (rev 2740)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-12 15:32:07 UTC (rev 2741)
@@ -172,7 +172,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.8/sqlobject/mysql/mysqlconnection.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:31:34 UTC (rev 2740)
+++ SQLObject/branches/0.8/sqlobject/mysql/mysqlconnection.py 2007-07-12 15:32:07 UTC (rev 2741)
@@ -270,6 +270,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'):
|