#4333: Filtering date gt in SQLite returns identical objects
------------------------------------------------------------+---------------
Reporter: Michael Snoyman <[EMAIL PROTECTED]> | Owner:
adrian
Status: closed |
Component: Database wrapper
Version: SVN |
Resolution: invalid
Keywords: sqlite date |
Stage: Unreviewed
Has_patch: 0 |
Needs_docs: 0
Needs_tests: 0 |
Needs_better_patch: 0
------------------------------------------------------------+---------------
Changes (by Gary Wilson <[EMAIL PROTECTED]>):
* status: new => closed
* resolution: => invalid
Comment:
Perhaps you are seeing this behavior because you are returning the first
item of your `set` `QuerySet`, but the `QuerySet` is not ordered. So you
end up getting a random ordering of `Entry` objects newer than the given
`Entry` object and returning the first item in that `QuerySet`. This
could lead to duplicate `Entry` objects being returned since it's not
ordered by `when` date.
--
Ticket URL: <http://code.djangoproject.com/ticket/4333#comment:3>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---