[Dbix-class] Bug in resultset?

Drew Taylor drew at drewtaylor.com
Wed Jul 7 13:17:48 GMT 2010


On Wed, Jul 7, 2010 at 10:38 AM, Stuart Dodds <dodds at united-domains.de> wrote:
> On Wed, 2010-07-07 at 10:18 +0100, Chris Cole wrote:
>
> to search twice on the same field you could try something like this:
>
> {
>    mp_start => { '>=', $start, '<', $end, },
> }

Huh, I had never thought about using multiple key/value pairs before.
This is a LOT prettier than -and => [ start_date => {...}, start_date
=> {...} ]. Thanks!

Drew



More information about the DBIx-Class mailing list