[Bast-commits] r4553 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Fri Jul 4 00:52:32 BST 2008
Author: ribasushi
Date: 2008-07-04 00:52:31 +0100 (Fri, 04 Jul 2008)
New Revision: 4553
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
Log:
Minor cookbook fix (two adjacent examples were mixed up)
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2008-07-02 22:19:39 UTC (rev 4552)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2008-07-03 23:52:31 UTC (rev 4553)
@@ -194,8 +194,6 @@
}
);
- my $count = $rs->next->get_column('count');
-
=head2 SELECT COUNT(DISTINCT colname)
my $rs = $schema->resultset('Foo')->search(
@@ -208,6 +206,8 @@
}
);
+ my $count = $rs->next->get_column('count');
+
=head2 Grouping results
L<DBIx::Class> supports C<GROUP BY> as follows:
More information about the Bast-commits
mailing list