--
Ticket URL: <https://code.djangoproject.com/ticket/20015>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: apollo13 (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/20015#comment:1>
* cc: shai@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/20015#comment:2>
Comment (by shai):
Reference to anybody working on this: the user code is
{{{
Book.objects.filter(pubdate__startswith='2005')
}}}
and the generated query is
{{{
...
WHERE "SHARED_MODELS_BOOK"."PUBDATE" LIKE TRANSLATE(TO_TIMESTAMP(:arg0,
'YYYY-MM-DD HH24:MI:SS.FF') USING NCHAR_CS) ESCAPE TRANSLATE('\' USING
NCHAR_CS)
}}}
That is, where the user code expects dates to be translated to strings,
the backend tries to translate the string to a date in the middle of all
the string translation operations.
--
Ticket URL: <https://code.djangoproject.com/ticket/20015#comment:3>
* status: new => assigned
* owner: nobody => shai
--
Ticket URL: <https://code.djangoproject.com/ticket/20015#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8fd40b9ae783614658f6e0ca7af7f2faab0c48fc"]:
{{{
#!CommitTicketReference repository=""
revision="8fd40b9ae783614658f6e0ca7af7f2faab0c48fc"
Fixed #20015 -- date__startswith('2008') fails under Oracle
Removed the explicit casting of strings to dates
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20015#comment:5>