diff options
| author | Timo Graham <timograham@gmail.com> | 2010-12-28 13:36:12 +0000 |
|---|---|---|
| committer | Timo Graham <timograham@gmail.com> | 2010-12-28 13:36:12 +0000 |
| commit | 483cddf23eaece8980ec771f0c0b298f91979e31 (patch) | |
| tree | b0ef0e6bcd4a80a1639e83e9e0aecc91dd4ec90f /docs/ref | |
| parent | b0ce5fce733dc25ae209f53de408afb85f9d6201 (diff) | |
[1.2.X] Fixed #14320 - Add a note about lack of timezone support in MySQL. Thanks RauntyDave for the suggestion, adamv for the patch.
Backport of r15078 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/databases.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 0ac5caaf87..60a0f13d54 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -345,6 +345,14 @@ Furthermore, if you are using a version of MySQL prior to 5.0.3, all of those column types have a maximum length restriction of 255 characters, regardless of whether ``unique=True`` is specified or not. +DateTime fields +~~~~~~~~~~~~~~~ + +MySQL does not have a timezone-aware column type. If an attempt is made to +store a timezone-aware ``time`` or ``datetime`` to a +:class:`~django.db.models.TimeField` or :class:`~django.db.models.DateTimeField` +respectively, a ``ValueError`` is raised rather than truncating data. + .. _sqlite-notes: SQLite notes |
