From: Matt S Trout Date: Tue, 23 May 2006 17:42:15 +0000 (+0000) Subject: Sodding three-value for conditions X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=701ee78e2af27a0b35d5899087cde1cc5d2ef0ff;p=dbsrgits%2FDBIx-Class-Historic.git Sodding three-value for conditions --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 49d615f..494bb56 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -911,7 +911,7 @@ sub _cond_for_update_delete { $cond->{-and} = []; my @cond = @{$self->{cond}{-and}}; - for (my $i = 0; $i < @cond - 1; $i++) { + for (my $i = 0; $i <= @cond - 1; $i++) { my $entry = $cond[$i]; my %hash;