From e63f5610920c312f3b284b65dbc8170cbf34f221 Mon Sep 17 00:00:00 2001 From: Pavel Stehule Date: Tue, 10 Sep 2019 11:33:57 +0200 Subject: [PATCH] fix regress tests after recheck against 9.4 to current --- expected/plpgsql_check_active_1.out | 22 ++++++++++++++++++++++ expected/plpgsql_check_active_2.out | 22 ++++++++++++++++++++++ expected/plpgsql_check_active_3.out | 22 ++++++++++++++++++++++ expected/plpgsql_check_active_4.out | 22 ++++++++++++++++++++++ 4 files changed, 88 insertions(+) diff --git a/expected/plpgsql_check_active_1.out b/expected/plpgsql_check_active_1.out index 328cb80..c4fa55e 100644 --- a/expected/plpgsql_check_active_1.out +++ b/expected/plpgsql_check_active_1.out @@ -7176,3 +7176,25 @@ select lineno, stmt_lineno, exec_stmts, source from plpgsql_profiler_function_tb 1046 | | | end; (1046 rows) +create table testr(a int); +create rule testr_rule as on insert to testr do nothing; +create or replace function fx_testr() +returns void as $$ +begin + insert into testr values(20); +end; +$$ language plpgsql; +-- allow some rules on tables +select fx_testr(); + fx_testr +---------- + +(1 row) + +select * from plpgsql_check_function_tb('fx_testr'); + functionid | lineno | statement | sqlstate | message | detail | hint | level | position | query | context +------------+--------+-----------+----------+---------+--------+------+-------+----------+-------+--------- +(0 rows) + +drop function fx_testr(); +drop table testr; diff --git a/expected/plpgsql_check_active_2.out b/expected/plpgsql_check_active_2.out index 4d85ad2..f42161e 100644 --- a/expected/plpgsql_check_active_2.out +++ b/expected/plpgsql_check_active_2.out @@ -7145,3 +7145,25 @@ select lineno, stmt_lineno, exec_stmts, source from plpgsql_profiler_function_tb 1046 | | | end; (1046 rows) +create table testr(a int); +create rule testr_rule as on insert to testr do nothing; +create or replace function fx_testr() +returns void as $$ +begin + insert into testr values(20); +end; +$$ language plpgsql; +-- allow some rules on tables +select fx_testr(); + fx_testr +---------- + +(1 row) + +select * from plpgsql_check_function_tb('fx_testr'); + functionid | lineno | statement | sqlstate | message | detail | hint | level | position | query | context +------------+--------+-----------+----------+---------+--------+------+-------+----------+-------+--------- +(0 rows) + +drop function fx_testr(); +drop table testr; diff --git a/expected/plpgsql_check_active_3.out b/expected/plpgsql_check_active_3.out index a524fc4..3a2b8ed 100644 --- a/expected/plpgsql_check_active_3.out +++ b/expected/plpgsql_check_active_3.out @@ -7126,3 +7126,25 @@ select lineno, stmt_lineno, exec_stmts, source from plpgsql_profiler_function_tb 1046 | | | end; (1046 rows) +create table testr(a int); +create rule testr_rule as on insert to testr do nothing; +create or replace function fx_testr() +returns void as $$ +begin + insert into testr values(20); +end; +$$ language plpgsql; +-- allow some rules on tables +select fx_testr(); + fx_testr +---------- + +(1 row) + +select * from plpgsql_check_function_tb('fx_testr'); + functionid | lineno | statement | sqlstate | message | detail | hint | level | position | query | context +------------+--------+-----------+----------+---------+--------+------+-------+----------+-------+--------- +(0 rows) + +drop function fx_testr(); +drop table testr; diff --git a/expected/plpgsql_check_active_4.out b/expected/plpgsql_check_active_4.out index a955806..8e2cbae 100644 --- a/expected/plpgsql_check_active_4.out +++ b/expected/plpgsql_check_active_4.out @@ -7176,3 +7176,25 @@ select lineno, stmt_lineno, exec_stmts, source from plpgsql_profiler_function_tb 1046 | | | end; (1046 rows) +create table testr(a int); +create rule testr_rule as on insert to testr do nothing; +create or replace function fx_testr() +returns void as $$ +begin + insert into testr values(20); +end; +$$ language plpgsql; +-- allow some rules on tables +select fx_testr(); + fx_testr +---------- + +(1 row) + +select * from plpgsql_check_function_tb('fx_testr'); + functionid | lineno | statement | sqlstate | message | detail | hint | level | position | query | context +------------+--------+-----------+----------+---------+--------+------+-------+----------+-------+--------- +(0 rows) + +drop function fx_testr(); +drop table testr;