summaryrefslogtreecommitdiff
path: root/doc/src/sgml/pltcl.sgml
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-09-20 22:48:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-09-20 22:48:29 +0000
commit2f48836b1f340ba82d2dc72903ed0262c4b636ef (patch)
tree21eb5ee77503c0930a783eeec8c2aebc3b4fbde6 /doc/src/sgml/pltcl.sgml
parent5b564e53070c60b3fecbd5c9b15e6a44d83b47e1 (diff)
downloadpostgresql-2f48836b1f340ba82d2dc72903ed0262c4b636ef.tar.gz
Some editorializing on the docs for the dollar-quoting feature: fix
grammar, don't drop discussions into the middle of unrelated discussions, etc.
Diffstat (limited to 'doc/src/sgml/pltcl.sgml')
-rw-r--r--doc/src/sgml/pltcl.sgml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/pltcl.sgml b/doc/src/sgml/pltcl.sgml
index d790a04570..09f8f82eaa 100644
--- a/doc/src/sgml/pltcl.sgml
+++ b/doc/src/sgml/pltcl.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.30 2004/05/16 23:22:07 neilc Exp $
+$PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.31 2004/09/20 22:48:25 tgl Exp $
-->
<chapter id="pltcl">
@@ -400,7 +400,7 @@ $$ LANGUAGE pltcl;
<term><function>quote</> <replaceable>string</replaceable></term>
<listitem>
<para>
- Duplicates all occurrences of single quote and backslash characters
+ Doubles all occurrences of single quote and backslash characters
in the given string. This may be used to safely quote strings
that are to be inserted into SQL commands given
to <function>spi_exec</function> or
@@ -422,10 +422,10 @@ SELECT 'doesn't' AS ret
which would cause a parse error during
<function>spi_exec</function> or
<function>spi_prepare</function>.
- The submitted command should contain
+ To work properly, the submitted command should contain
<programlisting>
-SELECT $q$doesn't$q$ AS ret
+SELECT 'doesn''t' AS ret
</programlisting>
which can be formed in PL/Tcl using