Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c28aa15

Browse files
committed
Make pg_trgm tests independ from standard_conforming_string. Tests uses
regular expression which contains backslash.
1 parent 4034db2 commit c28aa15

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

contrib/pg_trgm/expected/pg_trgm.out

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
77
--------+---------
88
(0 rows)
99

10+
--backslash is used in tests below, installcheck will fail if
11+
--standard_conforming_string is off
12+
set standard_conforming_strings=on;
1013
select show_trgm('');
1114
show_trgm
1215
-----------

contrib/pg_trgm/sql/pg_trgm.sql

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ SELECT amname, opcname
55
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod
66
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
77

8+
--backslash is used in tests below, installcheck will fail if
9+
--standard_conforming_string is off
10+
set standard_conforming_strings=on;
11+
812
select show_trgm('');
913
select show_trgm('(*&^$@%@');
1014
select show_trgm('a b c');

0 commit comments

Comments
 (0)