[Bast-commits] r9061 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual
castaway at dev.catalyst.perl.org
castaway at dev.catalyst.perl.org
Fri Mar 26 20:16:44 GMT 2010
Author: castaway
Date: 2010-03-26 20:16:44 +0000 (Fri, 26 Mar 2010)
New Revision: 9061
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
Log:
Added clarification of quoting to cookbook pod for sql funcs, from metaperl
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2010-03-26 14:28:24 UTC (rev 9060)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod 2010-03-26 20:16:44 UTC (rev 9061)
@@ -415,6 +415,12 @@
you create an index on the return value of the function in question.) However,
it can be accomplished with C<DBIx::Class> when necessary.
+Your approach for doing so will depend on whether you have turned
+quoting on via the C<quote_char> and C<name_sep> attributes. If you
+explicitly defined C<quote_char> and C<name_sep> in your
+C<connect_info> (see L<DBIx::Class::Storage::DBI/"connect_info">) 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:
More information about the Bast-commits
mailing list