mirror of https://github.com/django/django.git
Fixed #20015 -- date__startswith('2008') fails under Oracle
Removed the explicit casting of strings to dates
This commit is contained in:
parent
b6ad9998e6
commit
8fd40b9ae7
|
@ -248,9 +248,6 @@ WHEN (new.%(col_name)s IS NULL)
|
|||
value = value.date()
|
||||
return value
|
||||
|
||||
def datetime_cast_sql(self):
|
||||
return "TO_TIMESTAMP(%s, 'YYYY-MM-DD HH24:MI:SS.FF')"
|
||||
|
||||
def deferrable_sql(self):
|
||||
return " DEFERRABLE INITIALLY DEFERRED"
|
||||
|
||||
|
|
Loading…
Reference in New Issue