Commit 8fd40b9a authored by Shai Berger's avatar Shai Berger
Browse files

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

Removed the explicit casting of strings to dates
parent b6ad9998
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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"