examples should be correct
Peter Rabbitson [Mon, 17 Aug 2009 10:37:14 +0000 (10:37 +0000)]
lib/DBIx/Class/Manual/Cookbook.pod

index 7561248..51a8a33 100644 (file)
@@ -209,8 +209,8 @@ generated SQL via the C<-as> field attribute as follows:
     {
       join => 'cds',
       distinct => 1,
-      +select => [ { count => 'cds.cdid', -as => 'amount_of_cds' } ],
-      +as => [qw/num_cds/],
+      '+select' => [ { count => 'cds.cdid', -as => 'amount_of_cds' } ],
+      '+as' => [qw/num_cds/],
       order_by => { -desc => 'amount_of_cds' },
     }
   );