summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/features.py
diff options
context:
space:
mode:
authorLily Foote <code@lilyf.org>2022-09-25 13:32:05 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-03 12:13:27 +0200
commit649b28eab6765cd6b2b40c779a18ecafc99b43d7 (patch)
tree64bd716f73eb776573bc6c14000fe6b31b6b70a1 /django/db/backends/mysql/features.py
parentf71b0cf769d9ac582ee3d1a8c33d73dad3a770da (diff)
downloaddjango-649b28eab6765cd6b2b40c779a18ecafc99b43d7.tar.gz
Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r--django/db/backends/mysql/features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py
index 2d5487446e..d5641215ca 100644
--- a/django/db/backends/mysql/features.py
+++ b/django/db/backends/mysql/features.py
@@ -81,7 +81,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
"swedish_ci": f"{charset}_swedish_ci",
}
- test_now_utc_template = "UTC_TIMESTAMP"
+ test_now_utc_template = "UTC_TIMESTAMP(6)"
@cached_property
def django_test_skips(self):