Fractional seconds missing for MySQL datatypes DATETIME and TIMESTAMP

Issue #2941 resolved
Former user created an issue

SQLAlchemy added support for fractional seconds in v0.8, but MySQL 5.6 also supports this for DATETIME and TIMESTAMP types.

Thus, something like this works:

 CREATE TABLE t1 (
   created DATETIME(6) CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
 )

Note that this works with the mysqlconnector dialect. Attaching a patch.

Comments (5)

  1. Log in to comment