Fix find() with an explicit constraint name (... { key => $cname } )
authorPeter Rabbitson <ribasushi@cpan.org>
Sat, 16 Oct 2010 16:40:53 +0000 (18:40 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 16 Oct 2010 23:57:44 +0000 (01:57 +0200)
commitb7743dabe3354b4a43954ec44a226dc1c44722ac
tree1691ee8241626dbf500782c1a90fa33ef29cc36b
parenta780a0ff7c99dd9b640f8c29ad0466bd0c907bf3
Fix find() with an explicit constraint name (... { key => $cname } )

Fix the code being overly lax on evaluation of the combined
condition (user supplied + $rs inherited). If we can not prove
that a constraint is deteministic - we throw

Also fix the heuristics invoked without a key attr. to not
consider constraints for which NULL values have been supplied
Changes
lib/DBIx/Class/ResultSet.pm
t/61findnot.t
t/80unique.t
t/relationship/update_or_create_multi.t