From: Tatsuo Ishii Date: Tue, 11 Sep 2001 05:11:59 +0000 (+0000) Subject: Add single quote (example given here does not work) X-Git-Tag: REL7_2_BETA1~437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95dc7785b5f7b0e78dbd7d17ab53fb08d4108ad6;p=postgresql Add single quote (example given here does not work) --- diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index a495160eee..1ffa995f24 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -1961,7 +1961,7 @@ testdb=> INSERT INTO my_table VALUES (:content); they don't cause a syntax error when the third line is processed. This could be done with the program sed: -testdb=> \set content `sed -e "s/'/\\\\\\'/g" < my_file.txt` +testdb=> \set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\'' Observe the correct number of backslashes (6)! You can resolve it this way: After psql has parsed this line, it passes