Browse files

Merge pull request #926 from catalanojuan/adds-dates-containing-zeros…


Added warn note to docs about MySQL issues with 0000-00-00 date strings
  • Loading branch information...
2 parents 31b5275 + 36b4561 commit 5180e40bee92edc4ef00d593a4609ff3a5295c90 @ptone ptone committed Mar 19, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/ref/databases.txt
@@ -241,6 +241,14 @@ required for full MySQL support in Django.
1.2.1p2 or newer, then delete the ```` file in the MySQLdb
directory that was left by an earlier version.
+.. note::
+ There are known issues with the way MySQLdb converts date strings into
+ datetime objects. Specifically, date strings with value 0000-00-00 are valid for
+ MySQL but will be converted into None by MySQLdb.
+ This means you should be careful while using loaddata/dumpdata with rows
+ that may have 0000-00-00 values, as they will be converted to None.
.. _MySQLdb:
Creating your database

0 comments on commit 5180e40

Please sign in to comment.