﻿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
34103	Queries with duplicate params incorrectly logged for Oracle	Ahmet Kucuk	David Sanders	"
When you try to update a value using `Coalesce`, Oracle compiler decides to filter by 0 rather than passed filter id 1. 

`TestTable.objects.filter(id=1).update(test_count=Coalesce(F('test_count'), Value(0), output_field=IntegerField()) + 0)`

`UPDATE ""testtable"" SET ""test_count"" = (COALESCE(""testtable"".""test_count"", 0) + 1) WHERE ""testtable"".""id"" = 0`

If you pass more fields, it is still evaluated as 0.

`TestTable.objects.filter(id=1).update(test_count=Coalesce(F('test_count'), Value(0), output_field=IntegerField()) + 0, test_count2=Coalesce(F('test_count2'), Value(0), output_field=IntegerField()) + 10)`"	Bug	closed	Database layer (models, ORM)	3.2	Normal	fixed	Oracle, ORM, Compiler	David Sanders	Ready for checkin	1	0	0	0	0	0
