aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-09-11 05:11:59 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-09-11 05:11:59 +0000
commit95dc7785b5f7b0e78dbd7d17ab53fb08d4108ad6 (patch)
tree4ae3d0ec7729bc35f993dafe46316b6812e06b83 /doc/src
parent14fa192d464f2debc35eae6b0db591ea2d3b7017 (diff)
downloadpostgresql-95dc7785b5f7b0e78dbd7d17ab53fb08d4108ad6.tar.gz
postgresql-95dc7785b5f7b0e78dbd7d17ab53fb08d4108ad6.zip
Add single quote (example given here does not work)
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index a495160eeed..1ffa995f24c 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.58 2001/09/03 12:57:50 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.59 2001/09/11 05:11:59 ishii Exp $
Postgres documentation
-->
@@ -1961,7 +1961,7 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:content);</userinput>
they don't cause a syntax error when the third line is processed. This
could be done with the program <application>sed</application>:
<programlisting>
-testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinput>
+testdb=> <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\''</userinput>
</programlisting>
Observe the correct number of backslashes (6)! You can resolve it this way: After
<application>psql</application> has parsed this line, it passes