﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1237	diff warpwarp rerun check for label might not work	eugene	Paul Price	"diff warpwarp is supposed to generate a new warpwarp for a given output label if the result entry for that warpwarp does not exist with the given label.  I'm not sure the logic quite does this.  Currently, the not(rerun) test is essentially: 

select warp1, warp2 
  left join diffRun 
  where (diffRun.diff_id IS NULL OR diffRun.label != 'foo')

if I have no diffRun that matches the input warps, then this will results in a new diffRun (good).

if I have a single diffRun that matches the input warps with the label 'foo', the IS NULL part is false and label != foo is false, so this prevents the diffRun from being generated.  

if I have a single diffRun that matches the input warps with a label other than 'foo', this will result in a new diffRun (IS NULL is false, but != foo is true).

BUT, if I have multiple matching diffRuns, including one that has the label 'foo' and others without the label 'foo', then this will still generate a new diffRun. 

This seems like a case where getting the SQL to give the perfect result is more work than it is worth, while examining the output list after the fact may be more useful.  "	defect	closed	high		ippTools		major	fixed		
