summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/db/models/functions/datetime.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/models/functions/datetime.py b/django/db/models/functions/datetime.py
index baed94227a..eb5332ecc0 100644
--- a/django/db/models/functions/datetime.py
+++ b/django/db/models/functions/datetime.py
@@ -236,6 +236,11 @@ class Now(Func):
**extra_context,
)
+ def as_oracle(self, compiler, connection, **extra_context):
+ return self.as_sql(
+ compiler, connection, template="LOCALTIMESTAMP", **extra_context
+ )
+
class TruncBase(TimezoneMixin, Transform):
kind = None