From: David Kamholz Date: Fri, 9 Jun 2006 22:36:40 +0000 (+0000) Subject: fix for prefetch bug in _merge_attr X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6b5028d8a2a61dd15e77d02779220684cedcb17e;p=dbsrgits%2FDBIx-Class-Historic.git fix for prefetch bug in _merge_attr --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index f72dc66..d8db38b 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -193,7 +193,7 @@ sub search_rs { $our_attrs->{join} = $self->_merge_attr($our_attrs->{join}, $attrs->{_live_join_h}, 1) if ($attrs->{_live_join_h}); - if (exists $our_attrs->{prefetch}) { + if (defined $our_attrs->{prefetch}) { $our_attrs->{join} = $self->_merge_attr($our_attrs->{join}, $our_attrs->{prefetch}, 1); }