in reply to Catalyst, DBIx::Class, SELECT DISTINCT and TT
sub test_distinct :Local { $c->stash->{distinct_groups} = [map {$_->group} ( $c->model('Database1')->resultset('Table1')->search( undef, { select => ['group'], order_by => ['group'], }, ) )]; }
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Catalyst, DBIx::Class, SELECT DISTINCT and TT
by Anonymous Monk on Apr 16, 2009 at 11:20 UTC | |
by CountZero (Bishop) on Apr 16, 2009 at 11:40 UTC | |
by Anonymous Monk on Apr 16, 2009 at 13:57 UTC | |
by CountZero (Bishop) on Apr 16, 2009 at 14:38 UTC |