From: Jess Robinson Date: Fri, 26 Mar 2010 20:16:44 +0000 (+0000) Subject: Added clarification of quoting to cookbook pod for sql funcs, from metaperl X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=46ed4241210f83e9e3ac18b09fa21baaa737aba2;p=dbsrgits%2FDBIx-Class-Historic.git Added clarification of quoting to cookbook pod for sql funcs, from metaperl --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 5524c18..85e632e 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -415,6 +415,12 @@ supports indexes on expressions - including return values of functions - and you create an index on the return value of the function in question.) However, it can be accomplished with C when necessary. +Your approach for doing so will depend on whether you have turned +quoting on via the C and C attributes. If you +explicitly defined C and C in your +C (see L) then +you are using quoting, otherwise not. + If you do not have quoting on, simply include the function in your search specification as you would any column: