I need to do a search on a resultset that is filtered by two values on the same field.

I tried code like this, but it doesn't seem to be working:

my $t = $schema->resultset('Table')->search(
 {
   'glr_date' => { '>=', $beg_date },
   'glr_date' => { '<', $end_date }
 }
);

Can anyone offer guidance on how to handle a search like this?

Thanks,
Greg Coates

_______________________________________________
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/[email protected]

Reply via email to