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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy