projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14fa192
)
Add single quote (example given here does not work)
author
Tatsuo Ishii
Tue, 11 Sep 2001 05:11:59 +0000
(
05:11
+0000)
committer
Tatsuo Ishii
Tue, 11 Sep 2001 05:11:59 +0000
(
05:11
+0000)
doc/src/sgml/ref/psql-ref.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/ref/psql-ref.sgml
b/doc/src/sgml/ref/psql-ref.sgml
index a495160eeedab5c29fed9633005ac8ffc940a37e..1ffa995f24c2c4022d5a81a2b30897273abbc3e4 100644
(file)
--- 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