﻿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
17877	query.extra(where=...) lack parenthesis	Marek Brzóska <brzoskamarek@…>	Adrien Lemaire	"When using some_query.extra(where=""some_code OR more_code"") [https://docs.djangoproject.com/en/1.3/ref/models/querysets/#django.db.models.query.QuerySet.extra documentation] says the where-clause will be ANDed with other conditions. 

I believe the ANDing part does not surround the user specified where-clause with parenthesis which in this case leads to erroneous code because AND has higher priority than OR. "	Bug	closed	Database layer (models, ORM)	1.3	Normal	fixed		brzoskamarek@… eleather lemaire.adrien@…	Ready for checkin	1	0	0	0	1	0
