[jifty-devel] Patch for allowing an array of values within limit

Jesse Vincent jesse at bestpractical.com
Mon Aug 20 16:43:01 EDT 2007


looks good. go for it.
On Aug 15, 2007, at 10:01 AM, Edward Funnekotter wrote:

> Hi all,
>
> Here is a patch for your perusal that contains fixes to Jifty-DBI  
> to allow a limit clause to contain an array ref.  This gets  
> converted to an 'IN' operator within the built SQL query.  The  
> operator can be either 'IN' or '='.
>
> E.g.
>
>         $users_obj->limit( column => 'login',
>                            operator => 'IN',
>                            value => ['cubic', 'obra', 'glasser',  
> 'audreyt'] );
>
> Could someone in the know, take a peek and ok the commit?
>
> Thanks,
> Edward
>
>
> <in_operator_patch.gz>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070820/7e45c50b/PGP.pgp


More information about the jifty-devel mailing list