Commit c28aa157 authored by Teodor Sigaev's avatar Teodor Sigaev

Make pg_trgm tests independ from standard_conforming_string. Tests uses

regular expression which contains backslash.
parent 4034db21
......@@ -7,6 +7,9 @@ WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
--------+---------
(0 rows)
--backslash is used in tests below, installcheck will fail if
--standard_conforming_string is off
set standard_conforming_strings=on;
select show_trgm('');
show_trgm
-----------
......
......@@ -5,6 +5,10 @@ SELECT amname, opcname
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
--backslash is used in tests below, installcheck will fail if
--standard_conforming_string is off
set standard_conforming_strings=on;
select show_trgm('');
select show_trgm('(*&^$@%@');
select show_trgm('a b c');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment