[Bast-commits] r8249 - DBIx-Class/0.08/trunk/lib/DBIx/Class
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Thu Jan 7 10:22:43 GMT 2010
Author: ribasushi
Date: 2010-01-07 10:22:42 +0000 (Thu, 07 Jan 2010)
New Revision: 8249
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
Log:
Minor optimization
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2010-01-07 10:21:55 UTC (rev 8248)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2010-01-07 10:22:42 UTC (rev 8249)
@@ -1431,7 +1431,7 @@
my $cond = $rsrc->schema->storage->_strip_cond_qualifiers ($self->{cond});
my $needs_group_by_subq = $self->_has_resolved_attr (qw/collapse group_by -join/);
- my $needs_subq = (not defined $cond) || $self->_has_resolved_attr(qw/row offset/);
+ my $needs_subq = $needs_group_by_subq || (not defined $cond) || $self->_has_resolved_attr(qw/row offset/);
if ($needs_group_by_subq or $needs_subq) {
More information about the Bast-commits
mailing list