[Bast-commits] r6638 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual
arcanez at dev.catalyst.perl.org
arcanez at dev.catalyst.perl.org
Thu Jun 11 20:29:54 GMT 2009
Author: arcanez
Date: 2009-06-11 20:29:53 +0000 (Thu, 11 Jun 2009)
New Revision: 6638
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
Log:
cookbook tweak for count distinct
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2009-06-11 20:09:55 UTC (rev 6637)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2009-06-11 20:29:53 UTC (rev 6638)
@@ -279,7 +279,7 @@
my $count = $rs->count;
# Equivalent SQL:
- # SELECT COUNT( DISTINCT( me.name ) ) FROM artist me
+ # SELECT COUNT( * ) FROM (SELECT me.name FROM artist me GROUP BY me.name) count_subq:
=head2 Grouping results
More information about the Bast-commits
mailing list