﻿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
6837	Bug in db.models.query.as_sql() with multiple where clauses	Paul Smith	nobody	"If you give {{{extra}}} a list of {{{where}}} clauses, and there's more than one clause in the list, the query will fail, because the generated SQL, by {{{db.models.query.as_sql()}}} has a typo.

For example:

{{{Mumble.objects.extra(where=[""foo='bar'"", ""jazz='jimmy'""])}}}

makes the following WHERE SQL:

{{{foo='bar' ANDjazz='jimmy'}}}"		closed	Database layer (models, ORM)	queryset-refactor		fixed			Unreviewed	0	0	0	0	0	0
