Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
95dc7785
Commit
95dc7785
authored
23 years ago
by
Tatsuo Ishii
Browse files
Options
Downloads
Patches
Plain Diff
Add single quote (example given here does not work)
parent
14fa192d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/ref/psql-ref.sgml
+2
-2
2 additions, 2 deletions
doc/src/sgml/ref/psql-ref.sgml
with
2 additions
and
2 deletions
doc/src/sgml/ref/psql-ref.sgml
+
2
−
2
View file @
95dc7785
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.5
8
2001/09/
03 12:57:50 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.5
9
2001/09/
11 05:11:59 ishii
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -1961,7 +1961,7 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:content);</userinput>
...
@@ -1961,7 +1961,7 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:content);</userinput>
they don't cause a syntax error when the third line is processed. This
they don't cause a syntax error when the third line is processed. This
could be done with the program <application>sed</application>:
could be done with the program <application>sed</application>:
<programlisting>
<programlisting>
testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinput>
testdb=> <userinput>\set content
'\''
`sed -e "s/'/\\\\\\'/g" < my_file.txt`
'\''
</userinput>
</programlisting>
</programlisting>
Observe the correct number of backslashes (6)! You can resolve it this way: After
Observe the correct number of backslashes (6)! You can resolve it this way: After
<application>psql</application> has parsed this line, it passes
<application>psql</application> has parsed this line, it passes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment