#12822: DatabaseError: aggregates not allowed in WHERE clause
--------------------------------------+-------------------------------------
Reporter: mat | Owner:
Status: new | Milestone: 1.2
Component: ORM aggregation | Version: 1.2-beta
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by mat):
I've tried to come up with a unit test for this bug and found surprising
results. I've attached
[http://code.djangoproject.com/attachment/ticket/12822/more-aggregation-
unittests.diff a patch adding my tests against the latest svn] and it
fails with sqlite too, but not with a `DatabaseError` : the results seem
simply wrong.
Should I open another bug ? Either I'm completely wrong or it's a serious
aggregation bug ; It passes correctly with django 1.1.
Note that with `postgresql_psycopg2` the test does fail with the
`DatabaseError`, so the original bug is still present.
--
Ticket URL: <http://code.djangoproject.com/ticket/12822#comment:2>
Django <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.