0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed #20015 -- date__startswith('2008') fails under Oracle

Removed the explicit casting of strings to dates
This commit is contained in:
Shai Berger 2013-05-22 01:27:27 +03:00
parent b6ad9998e6
commit 8fd40b9ae7

View File

@ -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"