From: Peter Rabbitson Date: Wed, 13 May 2009 23:54:41 +0000 (+0000) Subject: join can be found without seen_join X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf148833e91301fba6500ea3437fb60be9c66e09;p=dbsrgits%2FDBIx-Class-Historic.git join can be found without seen_join --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 9fd07e4..e21feeb 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1315,7 +1315,7 @@ sub _cond_for_update_delete { # Some attributes when present require a subquery # This might not work on some database (mysql), but... # it won't work without the subquery either so who cares - if (grep { defined $self->{attrs}{$_} } qw/seen_join from rows group_by/) { + if (grep { defined $self->{attrs}{$_} } qw/join seen_join from rows group_by/) { foreach my $pk ($self->result_source->primary_columns) { $cond->{$pk} = { IN => $self->get_column($pk)->as_query };