Minor cookbook fix (two adjacent examples were mixed up)
Peter Rabbitson [Thu, 3 Jul 2008 23:52:31 +0000 (23:52 +0000)]
lib/DBIx/Class/Manual/Cookbook.pod

index e9ac0ad..6773479 100644 (file)
@@ -194,8 +194,6 @@ any of your aliases using either of these:
     }
   );
 
-  my $count = $rs->next->get_column('count');
-
 =head2 SELECT COUNT(DISTINCT colname)
 
   my $rs = $schema->resultset('Foo')->search(
@@ -208,6 +206,8 @@ any of your aliases using either of these:
     }
   );
 
+  my $count = $rs->next->get_column('count');
+
 =head2 Grouping results
 
 L<DBIx::Class> supports C<GROUP BY> as follows: