summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/database-functions.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index 13b70d76cd..f22a7ae386 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -562,11 +562,21 @@ Usage example:
``Now()`` uses ``STATEMENT_TIMESTAMP`` instead. If you need the transaction
timestamp, use :class:`django.contrib.postgres.functions.TransactionNow`.
+.. admonition:: Oracle
+
+ On Oracle, the SQL ``LOCALTIMESTAMP`` is used to avoid issues with casting
+ ``CURRENT_TIMESTAMP`` to ``DateTimeField``.
+
.. versionchanged:: 4.2
Support for microsecond precision on MySQL and millisecond precision on
SQLite were added.
+.. versionchanged:: 5.0
+
+ In older versions, the SQL ``CURRENT_TIMESTAMP`` was used on Oracle instead
+ of ``LOCALTIMESTAMP``.
+
``Trunc``
---------