From: Dagfinn Ilmari Mannsåker Date: Wed, 24 Sep 2014 15:52:28 +0000 (+0100) Subject: Fix literal SQL and bind values example in "columns" documentation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=28b77c14dc9b76436c5ebe9f9931548a237e3467;p=dbsrgits%2FDBIx-Class-Historic.git Fix literal SQL and bind values example in "columns" documentation --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 3ec0268..fba0d80 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -4099,12 +4099,13 @@ scalar reference or a literal bind value, and these values will be available in the result with C (see also L): - # equivalent SQL: SELECT 1, 'a string', IF(x,1,2) ... + # equivalent SQL: SELECT 1, 'a string', IF(my_column,?,?) ... + # bind values: $true_value, $false_value columns => [ { foo => \1, bar => \q{'a string'}, - baz => \[ '?', 'IF(x,1,2)' ], + baz => \[ 'IF(my_column,?,?)', $true_value, $false_value ], } ]