#5321: PostgreSQL fails on a ValuesQuerySet which is ordered by a field not in
the
fields list
------------------------+---------------------------------------------------
Reporter: SmileyChris | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
------------------------+---------------------------------------------------
This bug was found by accident while trying to provide a control test for
#2939.
Basically, the failing test is:
{{{
#!python
Article.objects.values('pub_date').distinct()
}}}
Which fails on Postgres with `for SELECT DISTINCT, ORDER BY expressions
must appear in select list`
--
Ticket URL: <http://code.djangoproject.com/ticket/5321>
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
-~----------~----~----~----~------~----~------~--~---