From: Peter Rabbitson Date: Mon, 17 Aug 2009 10:37:14 +0000 (+0000) Subject: examples should be correct X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=496846a46dcfae058a2fa48224316978171434ae;p=dbsrgits%2FDBIx-Class-Historic.git examples should be correct --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 7561248..51a8a33 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -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' }, } );