#18176: SQL queries for filtering datetime objects use incorrect format for
years
<1000
-------------------------------------+-------------------------------------
Reporter: rrotaru | Owner: rrotaru
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: datetime, SQL, year | Needs documentation: 1
Has patch: 1 | Patch needs improvement: 0
Needs tests: 1 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by fhahn):
I think this issue is already fixed in master.
#18969 describes a similar issue and the test case provided there tests
year lookups with a year < 1000. This test case worked for me with
postgres and sqlite. The SQL is generated correctly. String lookups for
{{{__year}}} work as well.
We should probably close either this ticket or #18969 as duplicate.
--
Ticket URL: <https://code.djangoproject.com/ticket/18176#comment:6>
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.