Skip to content

Commit

Permalink
fix regress tests after recheck against 9.4 to current
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Sep 10, 2019
1 parent 77455e0 commit e63f561
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
22 changes: 22 additions & 0 deletions expected/plpgsql_check_active_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -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;
22 changes: 22 additions & 0 deletions expected/plpgsql_check_active_2.out
Original file line number Diff line number Diff line change
Expand Up @@ -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;
22 changes: 22 additions & 0 deletions expected/plpgsql_check_active_3.out
Original file line number Diff line number Diff line change
Expand Up @@ -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;
22 changes: 22 additions & 0 deletions expected/plpgsql_check_active_4.out
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e63f561

Please sign in to comment.