File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 $
33Postgres 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
You can’t perform that action at this time.
0 commit comments