Fix project_summary view returning unwanted rows.

Fixes #197.
This commit is contained in:
D. Berge
2022-04-27 10:49:46 +02:00
parent 7cf89d48dd
commit da578d2e50
3 changed files with 139 additions and 3 deletions

View File

@@ -1531,7 +1531,7 @@ CREATE VIEW _SURVEY__TEMPLATE_.project_summary AS
p.name,
p.schema
FROM public.projects p
WHERE (current_setting('search_path'::text) ~~ (p.schema || '%'::text))
WHERE (split_part(current_setting('search_path'::text), ','::text, 1) = p.schema)
)
SELECT project.pid,
project.name,