#20015: test_lookup_date_as_str fails under Oracle
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Release blocker | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.