﻿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
30332	Postgres ordering ARRAY_AGG and STRING_AGG do not support expression.	Simone Pellizzari	Simone Pellizzari	"I found that if you pass and expression as an ordering argument (introduced in https://github.com/django/django/commit/96199e562dcc409ab4bdc2b2146fa7cf73c7c5fe) an {{{ IndexError: tuple index out of range }}} exception will be thrown when the query is executed.

This is caused by simply ignoring {{{ sql_params }}} returned from {{{ as_sql }}} calls on expressions contained built from {{{ ordering }}} argument."	Bug	closed	Database layer (models, ORM)	2.2	Normal	fixed	postgres string_agg array_agg ordering order by		Unreviewed	1	0	0	0	0	0
