Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4b836d83
Commit
4b836d83
authored
Sep 14, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some links for escape strings.
Brendan Jurd Fix markup in previous commit.
parent
f6a168e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+10
-10
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+3
-2
No files found.
doc/src/sgml/func.sgml
View file @
4b836d83
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.39
3 2007/09/14 00:52:4
5 momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.39
4 2007/09/14 14:54:2
5 momjian Exp $ -->
<chapter
id=
"functions"
>
<chapter
id=
"functions"
>
<title>
Functions and Operators
</title>
<title>
Functions and Operators
</title>
...
@@ -2929,14 +2929,14 @@ cast(-44 as bit(12)) <lineannotation>111111010100</lineannotation>
...
@@ -2929,14 +2929,14 @@ cast(-44 as bit(12)) <lineannotation>111111010100</lineannotation>
</para>
</para>
<para>
<para>
Note that the backslash already has a special meaning in string
Note that the backslash already has a special meaning in string
literals,
literals, so to write a pattern constant that contains a backslash
so to write a pattern constant that contains a backslash you must write two
you must write two backslashes in an SQL statement (assuming escap
e
backslashes in an SQL statement (assuming escape string syntax is used, se
e
string syntax is used). Thus, writing a pattern
<xref
linkend=
"sql-syntax-strings"
>
). Thus, writing a pattern that
that actually matches a literal backslash means writing four backslashes
actually matches a literal backslash means writing four backslashes in the
in the statement. You can avoid this by selecting a different escape
statement. You can avoid this by selecting a different escape character
character with
<literal>
ESCAPE
</literal>
; then a backslash is not special
with
<literal>
ESCAPE
</literal>
; then a backslash is not special to
to
<function>
LIKE
</function>
anymore. (But it is still special to the string
<function>
LIKE
</function>
anymore. (But it is still special to the string
literal parser, so you still need two of them.)
literal parser, so you still need two of them.)
</para>
</para>
...
@@ -3549,7 +3549,7 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo;
...
@@ -3549,7 +3549,7 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo;
meaning in
<productname>
PostgreSQL
</>
string literals.
meaning in
<productname>
PostgreSQL
</>
string literals.
To write a pattern constant that contains a backslash,
To write a pattern constant that contains a backslash,
you must write two backslashes in the statement, assuming escape
you must write two backslashes in the statement, assuming escape
string syntax is used.
string syntax is used
(see
<xref
linkend=
"sql-syntax-strings"
>
)
.
</para>
</para>
</note>
</note>
...
...
doc/src/sgml/libpq.sgml
View file @
4b836d83
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
4 2007/09/14 14:31:22
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
5 2007/09/14 14:54:25
momjian Exp $ -->
<chapter id="libpq">
<chapter id="libpq">
<title><application>libpq</application> - C Library</title>
<title><application>libpq</application> - C Library</title>
...
@@ -5097,7 +5097,8 @@ defaultNoticeProcessor(void *arg, const char *message)
...
@@ -5097,7 +5097,8 @@ defaultNoticeProcessor(void *arg, const char *message)
user=appuser
user=appuser
ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
</synopsis>
</synopsis>
<para>
</para>
</sect1>
</sect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment