From: Peter Rabbitson Date: Sun, 17 Jan 2010 15:46:02 +0000 (+0000) Subject: Changes X-Git-Tag: v0.08116~30^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d64a273452933a67afa721826249b7a1978d4754;p=dbsrgits%2FDBIx-Class.git Changes --- diff --git a/Changes b/Changes index 73c424f..81ec262 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,9 @@ Revision history for DBIx::Class - Perl 5.8.1 is now the minimum supported version + - Massive optimization of the join resolution code - now joins + will be removed from the resulting SQL if DBIC can prove they + are not referenced by anything - Subqueries no longer marked experimental - might_have/has_one now warn if applied calling class's column has is_nullable set to true. diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index 2d9fd35..dd53655 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -97,6 +97,7 @@ sub _adjust_select_args_for_complex_prefetch { } # construct the inner $from for the subquery + # we need to prune first, because this will determine if we need a group_bu below my $inner_from = $self->_prune_unused_joins ($from, $inner_select, $where, $inner_attrs); # if a multi-type join was needed in the subquery - add a group_by to simulate the