Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c28aa157
Commit
c28aa157
authored
Dec 12, 2017
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pg_trgm tests independ from standard_conforming_string. Tests uses
regular expression which contains backslash.
parent
4034db21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
contrib/pg_trgm/expected/pg_trgm.out
contrib/pg_trgm/expected/pg_trgm.out
+3
-0
contrib/pg_trgm/sql/pg_trgm.sql
contrib/pg_trgm/sql/pg_trgm.sql
+4
-0
No files found.
contrib/pg_trgm/expected/pg_trgm.out
View file @
c28aa157
...
@@ -7,6 +7,9 @@ WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
...
@@ -7,6 +7,9 @@ WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid);
--------+---------
--------+---------
(0 rows)
(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('');
select show_trgm('');
show_trgm
show_trgm
-----------
-----------
...
...
contrib/pg_trgm/sql/pg_trgm.sql
View file @
c28aa157
...
@@ -5,6 +5,10 @@ SELECT amname, opcname
...
@@ -5,6 +5,10 @@ SELECT amname, opcname
FROM
pg_opclass
opc
LEFT
JOIN
pg_am
am
ON
am
.
oid
=
opcmethod
FROM
pg_opclass
opc
LEFT
JOIN
pg_am
am
ON
am
.
oid
=
opcmethod
WHERE
opc
.
oid
>=
16384
AND
NOT
amvalidate
(
opc
.
oid
);
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
(
'(*&^$@%@'
);
select
show_trgm
(
'(*&^$@%@'
);
select
show_trgm
(
'a b c'
);
select
show_trgm
(
'a b c'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment