You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2005/03/14 01:02:37 UTC
cvs commit: jakarta-jmeter/xdocs/usermanual functions.xml
sebb 2005/03/13 16:02:37
Modified: xdocs/usermanual Tag: rel-2_0 functions.xml
Log:
Clarify variable quoting in SQL
Revision Changes Path
No revision
No revision
1.14.2.15 +10 -1 jakarta-jmeter/xdocs/usermanual/functions.xml
Index: functions.xml
===================================================================
RCS file: /home/cvs/jakarta-jmeter/xdocs/usermanual/functions.xml,v
retrieving revision 1.14.2.14
retrieving revision 1.14.2.15
diff -u -r1.14.2.14 -r1.14.2.15
--- functions.xml 9 Jan 2005 18:16:52 -0000 1.14.2.14
+++ functions.xml 14 Mar 2005 00:02:37 -0000 1.14.2.15
@@ -47,7 +47,7 @@
<li><a href="#__property">read a property</a></li>
<li><a href="#__P">P -read a property</a></li>
<li><a href="#__log">log - log a message</a></li>
- <li><a href="#__logn">log - log a message</a></li>
+ <li><a href="#__logn">logn - log a message</a></li>
<li><a href="#__BeanShell">BeanShell - run BeanShell</a></li>
<li><a href="#__split">split - Split a string into variables</a></li>
<li><a href="#__XPath">XPath - XPath use an xpath expression</a></li>
@@ -75,6 +75,15 @@
functions.</p>
<p>Built-in functions can be written into any field of non-controller test components. This includes
Samplers, Timers, Listeners, Modifiers, Assertions, Pre-Processors, Post-Processors and Config Elements.</p>
+<note>When using variable/function references in SQL code (etc),
+remember to include any necessary quotes for text strings,
+i.e. use<br></br>
+SELECT item from table where name='${VAR}'
+<br></br><b>not</b>
+<br></br>
+SELECT item from table where name=${VAR}
+<br></br>(unless VAR itself contains the quotes)
+</note>
</subsection>
<subsection name="16.3 Writing the function string" anchor="how">
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org