diff options
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index e2784a136..5fc63234a 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -124,6 +124,10 @@ class MSTime(sqltypes.Time): else: return None +class MSTimeStamp(sqltypes.TIMESTAMP): + def get_col_spec(self): + return "TIMESTAMP" + class MSText(sqltypes.TEXT): def __init__(self, **kw): self.binary = 'binary' in kw @@ -232,8 +236,10 @@ colspecs = { sqltypes.Boolean : MSBoolean, sqltypes.TEXT : MSText, sqltypes.CHAR: MSChar, + sqltypes.TIMESTAMP: MSTimeStamp } + ischema_names = { 'boolean':MSBoolean, 'bigint' : MSBigInteger, @@ -251,7 +257,7 @@ ischema_names = { 'numeric' : MSNumeric, 'float' : MSFloat, 'double' : MSDouble, - 'timestamp' : MSDateTime, + 'timestamp' : MSTimeStamp, 'datetime' : MSDateTime, 'date' : MSDate, 'time' : MSTime, |