From: Norbert Buchmuller Date: Wed, 18 Feb 2009 03:09:08 +0000 (+0100) Subject: * Updated POD for using PostgreSQL arrays because of the \[$sql, @bind] bind value... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=31eb32630dfafe13e3fa97deb23272cfccbe1586;p=dbsrgits%2FDBIx-Class-Historic.git * Updated POD for using PostgreSQL arrays because of the \[$sql, @bind] bind value format change of SQLA. --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index b7fc30a..9838759 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1379,12 +1379,16 @@ passing them as bind values: $resultset->search( { - numbers => \[ '= ?', [1, 2, 3] ] + numbers => \[ '= ?', [numbers => [1, 2, 3]] ] } ); See L and L for more explanation. +placeholders and bind values (subqueries)> for more explanation. Note that +L sets L to C, so you must pass +the bind values (the C<[1, 2, 3]> arrayref in the above example) wrapped in +arrayrefs together with the column name, like this: C<< [column_name => value] +>>. =head1 BOOTSTRAPPING/MIGRATING