[interchange-docs] xmldocs - racke modified refs/dbi_quote.filter

docs at icdevgroup.org docs at icdevgroup.org
Wed Aug 15 07:24:41 EDT 2007


User:      racke
Date:      2007-08-15 11:24:38 GMT
Modified:  refs     dbi_quote.filter
Log:
example added: Quoting for the $Db query method

Revision  Changes    Path
1.5       +18 -0     xmldocs/refs/dbi_quote.filter


rev 1.5, prev_rev 1.4
Index: dbi_quote.filter
===================================================================
RCS file: /var/cvs/xmldocs/refs/dbi_quote.filter,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- dbi_quote.filter	4 May 2006 21:16:33 -0000	1.4
+++ dbi_quote.filter	15 Aug 2007 11:24:38 -0000	1.5
@@ -57,3 +57,21 @@
 <literal>'some string \ or other'</literal> for &ORACLE;.
 __END__
 
+__NAME__ example: Quoting for the $Db query method
+<programlisting><![CDATA[
+ActionMap set <<EOR
+sub {
+	my ($action, $name) = split('/', shift, 2);
+	my ($val, $set);
+	
+	# lookup code first
+	$Tag->perl({tables => 'sets'});
+
+	$val = $Tag->filter({op => 'dbi_quote.sets', body => $name});
+	$set = $Db{sets}->query({sql => "select code,description from sets where name = $val"});
+
+	...
+}
+EOR
+]]></programlisting>
+__END__








More information about the docs mailing list