[Dbix-class] Resultset chaining

Benjamin Hitz hitz at genome.stanford.edu
Wed Oct 14 20:53:04 GMT 2009


Oooh... nice catch but the second one succeeds; that is the correct SQL.

And this still fails to add the where clause
perl -I./ -MDB::Mod -e '$r=DB::Mod->schema->resultset("Feature"); $r- 
 >search({gene_name=>"ACT1"});$r->all' ;


Ben
On Oct 14, 2009, at 1:46 PM, Rob Kinyon wrote:

> On Wed, Oct 14, 2009 at 16:39, Benjamin Hitz  
> <hitz at genome.stanford.edu> wrote:
>>
>> I am having trouble chaining result sets; that is running ->search
>> subsequently.
>> So then I tried this:
>
> [snip] Neither will work because you aren't passing hashrefs.
>
> -- 
> Thanks,
> Rob Kinyon
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

--
Ben Hitz
Senior Scientific Programmer
Saccharomyces Genome Project
Stanford University
hitz at genome.stanford.edu






More information about the DBIx-Class mailing list