- attached mysqlfsp.diff
Fractional seconds missing for MySQL datatypes DATETIME and TIMESTAMP
Issue #2941
resolved
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)
-
Account Deleted -
repo owner - changed milestone to 0.9.3
looks good I'll try to get to this soon. have some backups of pullreqs right now.
-
repo owner - attached mysqlfsp.diff
re-uploading attachment
-
repo owner - changed status to resolved
dd6884eafaaf5082b2050e52715b363b54e7c561 0.8
a552606091bf84579751cd80ca458a0483b2b96a 0.9
thanks for the patch !
-
Just a note claiming this bug report as my own, not 'Anonymous' :)
Thanks for fixing it!
- Log in to comment
Patch adding support for fractional seconds for the MySQL DATETIME and TIMESTAMP