Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 95dc778

Browse files
committed
Add single quote (example given here does not work)
1 parent 14fa192 commit 95dc778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/ref/psql-ref.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.58 2001/09/03 12:57:50 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.59 2001/09/11 05:11:59 ishii Exp $
33
Postgres documentation
44
-->
55

@@ -1961,7 +1961,7 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:content);</userinput>
19611961
they don't cause a syntax error when the third line is processed. This
19621962
could be done with the program <application>sed</application>:
19631963
<programlisting>
1964-
testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinput>
1964+
testdb=> <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\''</userinput>
19651965
</programlisting>
19661966
Observe the correct number of backslashes (6)! You can resolve it this way: After
19671967
<application>psql</application> has parsed this line, it passes

0 commit comments

Comments
 (0)