Kaydet (Commit) 8fd40b9a authored tarafından Shai Berger's avatar Shai Berger

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

Removed the explicit casting of strings to dates
üst b6ad9998
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment