[Dbix-class] bind parameter syntax for an array
William Piel
william.piel at yale.edu
Wed Mar 28 20:01:53 GMT 2012
Okay. So, it sounds like feeding an array to the ? placeholder in a query l=
ike "IN( ? )" is not supported by the existing binding methods -- instead I=
would need to provide alternatives like "IN( ? )", "IN( ?, ? )", "IN( ?, ?=
, ? )", etc. =
thanks for the feedback,
Bill
On Mar 28, 2012, at 3:18 PM, Ben Tilly wrote:
> The number of bind parameters in the query has to match the number of
> parameters passed in. If you want to follow this approach you'll need
> to either dynamically create the query on the fly to match the
> request, or else pre-create versions with different numbers of bind
> parameters and use the correct one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120328/810=
60e5d/attachment.htm
More information about the DBIx-Class
mailing list