From: Norbert Buchmuller Date: Wed, 2 Sep 2009 01:53:21 +0000 (+0200) Subject: Changed the sample SQL in the Cookbook 'Complex WHERE clauses' example to show use... X-Git-Tag: v0.08111~19^2~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b10f700dde014246a335f2f8edcefb44f198ffa2;p=dbsrgits%2FDBIx-Class.git Changed the sample SQL in the Cookbook 'Complex WHERE clauses' example to show use of placeholders. --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index a525b27..e7e14ea 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -37,7 +37,10 @@ Sometimes you need to formulate a query using specific operators: This results in something like the following C clause: - WHERE artist LIKE '%Lamb%' AND title LIKE '%Fear of Fours%' + WHERE artist LIKE ? AND title LIKE ? + +And the following bind values for the placeholders: C<'%Lamb%'>, C<'%Fear of +Fours%'>. Other queries might require slightly more complex logic: