Ticket #19312: 19312.diff

File 19312.diff, 736 bytes (added by Tim Graham, 10 years ago)
  • docs/ref/databases.txt

    diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
    index 4426e28..9e081d1 100644
    a b respectively, a ``ValueError`` is raised rather than truncating data.  
    500500MySQL does not store fractions of seconds. Fractions of seconds are truncated
    501501to zero when the time is stored.
    502502
     503``TIMESTAMP`` fields
     504~~~~~~~~~~~~~~~~~~~~
     505
     506If you are using a legacy database that contains ``TIMESTAMP`` columns, you must
     507set :setting:`USE_TZ = False <USE_TZ>` to avoid data corruption. Otherwise
     508both MySQL and Django will attempt to convert from UTC to local time.
     509
    503510Row locking with ``QuerySet.select_for_update()``
    504511-------------------------------------------------
    505512
Back to Top