add schema to function calls

This commit is contained in:
Gonzalo Riestra 2019-10-25 12:26:21 +02:00
parent 2ce4d8ee14
commit 036127af9c

View File

@ -43,7 +43,7 @@ SELECT * FROM test_tablesas;
SELECT * FROM test_view;
SELECT * FROM test_mview;
SELECT * FROM test_selectinto;
SELECT test_function();
SELECT public.test_function();
\set QUIET on
SET SESSION AUTHORIZATION "ownership_role";
@ -54,7 +54,7 @@ SELECT 'denied_tableas', catch_permission_error($$SELECT * FROM test_tablesas;$$
SELECT 'denied_view', catch_permission_error($$SELECT * FROM test_view;$$);
SELECT 'denied_mview', catch_permission_error($$SELECT * FROM test_mview;$$);
SELECT 'denied_selectinto', catch_permission_error($$SELECT * FROM test_selectinto;$$);
SELECT 'denied_function', catch_permission_error($$SELECT test_function();$$);
SELECT 'denied_function', catch_permission_error($$SELECT public.test_function();$$);
\set QUIET on
SET SESSION AUTHORIZATION "creator_role";
@ -88,7 +88,7 @@ SELECT * FROM test2_tablesas;
SELECT * FROM test2_view;
SELECT * FROM test2_mview;
SELECT * FROM test2_selectinto;
SELECT test2_function();
SELECT public.test2_function();
\set QUIET on
SET SESSION AUTHORIZATION "ownership_role";
@ -99,7 +99,7 @@ SELECT 'denied_tableas2', catch_permission_error($$SELECT * FROM test2_tablesas;
SELECT 'denied_view2', catch_permission_error($$SELECT * FROM test2_view;$$);
SELECT 'denied_mview2', catch_permission_error($$SELECT * FROM test2_mview;$$);
SELECT 'denied_selectinto2', catch_permission_error($$SELECT * FROM test2_selectinto;$$);
SELECT 'denied_function2', catch_permission_error($$SELECT test2_function();$$);
SELECT 'denied_function2', catch_permission_error($$SELECT public.test2_function();$$);
\set QUIET on
SET SESSION AUTHORIZATION "creator_role";
@ -133,7 +133,7 @@ SELECT * FROM test3_tablesas;
SELECT * FROM test3_view;
SELECT * FROM test3_mview;
SELECT * FROM test3_selectinto;
SELECT test3_function();
SELECT public.test3_function();
\set QUIET on
SET SESSION AUTHORIZATION "ownership_role";
@ -144,7 +144,7 @@ SELECT 'denied_tableas3', catch_permission_error($$SELECT * FROM test3_tablesas;
SELECT 'denied_view3', catch_permission_error($$SELECT * FROM test3_view;$$);
SELECT 'denied_mview3', catch_permission_error($$SELECT * FROM test3_mview;$$);
SELECT 'denied_selectinto3', catch_permission_error($$SELECT * FROM test3_selectinto;$$);
SELECT 'denied_function3', catch_permission_error($$SELECT test3_function();$$);
SELECT 'denied_function3', catch_permission_error($$SELECT public.test3_function();$$);
\set QUIET on
SET SESSION AUTHORIZATION "creator_role";
@ -178,7 +178,7 @@ SELECT * FROM test4_tablesas;
SELECT * FROM test4_view;
SELECT * FROM test4_mview;
SELECT * FROM test4_selectinto;
SELECT test4_function();
SELECT public.test4_function();
\set QUIET on
SET SESSION AUTHORIZATION "ownership_role";
@ -189,7 +189,7 @@ SELECT * FROM test4_tablesas;
SELECT * FROM test4_view;
SELECT * FROM test4_mview;
SELECT * FROM test4_selectinto;
SELECT test4_function();
SELECT public.test4_function();
-- Ownership role drops the tables
DROP TABLE test4_tablesas;