philipsoutham/py-mysql2pgsql — Issue #3: Conversion error with NULL default for timestamp
Author: msmeeks
Created: 2011-12-06 22:24:29+00:00
State: open

Hi,

We love this tool, but had to patch it to make it work with NULL defaults for timestamp fields. We added these two lines after line 77 in mysql2pgsql/lib/postgres_writer.py:

if not column['default']:
return None, 'timestamp without time zone'