1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL.

This commit is contained in:
Lily Foote
2022-09-25 13:32:05 +01:00
committed by Mariusz Felisiak
parent f71b0cf769
commit 649b28eab6
5 changed files with 39 additions and 2 deletions

View File

@@ -495,6 +495,11 @@ Usage example::
``Now()`` uses ``STATEMENT_TIMESTAMP`` instead. If you need the transaction
timestamp, use :class:`django.contrib.postgres.functions.TransactionNow`.
.. versionchanged:: 4.2
Support for microsecond precision on MySQL and millisecond precision on
SQLite were added.
``Trunc``
---------

View File

@@ -223,6 +223,9 @@ Models
the text value of a key, index, or path transform of
:class:`~django.db.models.JSONField`.
* :class:`~django.db.models.functions.Now` now supports microsecond precision
on MySQL and millisecond precision on SQLite.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~