2

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 2

2

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:

Sign up to request clarification or add additional context in comments.

Comments

1

MySQLdb-1.2.4 (to be released within the next week) and the current release candidate has support for MySQL-5.5 and newer and should solve your problem. Please try 1.2.4c1 from PyPi (pip install MySQL-python)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.