Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95dc778

Browse files
committed
Add single quote (example given here does not work)
1 parent14fa192 commit95dc778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp