I'm using python's MySQLdb to fetch rows from a MySQL 5.6.7 db, that supports microsecond precision datetime columns. When I read a row with MySQLdb I get "None" for the time field. Is there are way to read such time fields with python?
2 Answers
Unfortunately, neither MySQLdb version 1.2.4b4 nor 1.2.4c1 have fixed the issue yet. It works, though, if you apply the patches of the mailinglist to the times.py file:
- to the function DateTime_or_None
- to the functions TimeDelta_or_None and Time_or_None