We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84934c commit fbdca18Copy full SHA for fbdca18
mysql2pgsql/lib/postgres_writer.py
@@ -73,7 +73,7 @@ def get_type(column):
73
elif column['type'] == 'double precision':
74
default = (" DEFAULT %s" % (column['default'] if t(column['default']) else 'NULL')) if t(default) else None
75
return default, 'double precision'
76
- elif column['type'] == 'datetime':
+ elif column['type'] == 'datetime' or column['type'].startswith('datetime('):
77
default = None
78
if self.tz:
79
return default, 'timestamp with time zone'
0 commit comments