﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11664	Invalid SQL is generated as part of the aggregation unit tests	egenix_viktor	nobody	"The following Django 1.1 unit tests seem to generate invalid SQL: `aggregation`, `aggregation_regress`. It happens even if I run then on SQLite.

The generated SQL always contains a strange `GROUP BY` clause, like this:

{{{
GROUP BY aggregation_book, aggregation_book, aggregation_book, aggregation_book, aggregation_book, aggregation_book, aggregation_book, aggregation_book, aggregation_book
}}}

The table name varies with the actual unit test. It happens several times."		closed	Database layer (models, ORM)	1.1		invalid			Unreviewed	0	0	0	0	0	0
