1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Use '' rather than \' for literal single quotes in strings in

/contrib/tsearch2.

Teodor Sigaev
This commit is contained in:
Bruce Momjian
2006-09-02 22:03:30 +00:00
parent 4b636e35a5
commit 0c4f2894f9
3 changed files with 43 additions and 28 deletions

View File

@ -59,25 +59,25 @@ SELECT '''1 2'''::tsvector;
SELECT E'''1 \\''2'''::tsvector;
tsvector
----------
'1 \'2'
'1 ''2'
(1 row)
SELECT E'''1 \\''2''3'::tsvector;
tsvector
-------------
'3' '1 \'2'
'3' '1 ''2'
(1 row)
SELECT E'''1 \\''2'' 3'::tsvector;
tsvector
-------------
'3' '1 \'2'
'3' '1 ''2'
(1 row)
SELECT E'''1 \\''2'' '' 3'' 4 '::tsvector;
tsvector
------------------
'4' ' 3' '1 \'2'
'4' ' 3' '1 ''2'
(1 row)
select '''w'':4A,3B,2C,1D,5 a:8';
@ -138,7 +138,7 @@ SELECT '''1 2'''::tsquery;
SELECT E'''1 \\''2'''::tsquery;
tsquery
---------
'1 \'2'
'1 ''2'
(1 row)
SELECT '!1'::tsquery;
@ -336,7 +336,7 @@ SELECT '1&(2&(4&(5|!6)))'::tsquery;
SELECT E'1&(''2''&('' 4''&(\\|5 | ''6 \\'' !|&'')))'::tsquery;
tsquery
------------------------------------------
'1' & '2' & ' 4' & ( '|5' | '6 \' !|&' )
'1' & '2' & ' 4' & ( '|5' | '6 '' !|&' )
(1 row)
SELECT '''the wether'':dc & '' sKies '':BC & a:d b:a';