From 4b836d8312dd8260614ea81cb07637472a28f84b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Sep 2007 14:54:25 +0000 Subject: [PATCH] Add some links for escape strings. Brendan Jurd Fix markup in previous commit. --- doc/src/sgml/func.sgml | 20 ++++++++++---------- doc/src/sgml/libpq.sgml | 5 +++-- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index e61a20aa396..5eee5b1156e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -2929,14 +2929,14 @@ cast(-44 as bit(12)) 111111010100 - Note that the backslash already has a special meaning in string - literals, so to write a pattern constant that contains a backslash - you must write two backslashes in an SQL statement (assuming escape - string syntax is used). Thus, writing a pattern - that actually matches a literal backslash means writing four backslashes - in the statement. You can avoid this by selecting a different escape - character with ESCAPE; then a backslash is not special - to LIKE anymore. (But it is still special to the string + Note that the backslash already has a special meaning in string literals, + so to write a pattern constant that contains a backslash you must write two + backslashes in an SQL statement (assuming escape string syntax is used, see + ). Thus, writing a pattern that + actually matches a literal backslash means writing four backslashes in the + statement. You can avoid this by selecting a different escape character + with ESCAPE; then a backslash is not special to + LIKE anymore. (But it is still special to the string literal parser, so you still need two of them.) @@ -3549,7 +3549,7 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo; meaning in PostgreSQL string literals. To write a pattern constant that contains a backslash, you must write two backslashes in the statement, assuming escape - string syntax is used. + string syntax is used (see ). diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 1c033e30841..f98db479cd0 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ - + <application>libpq</application> - C Library @@ -5097,7 +5097,8 @@ defaultNoticeProcessor(void *arg, const char *message) user=appuser ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*) - + +