Pages

Wednesday, May 31, 2017

New version of PLpgSQL_check

Hi I released new version of plpgsql_check. Some bugs are fixed. There are new extra warnings related to function arguments and PostgreSQL 10 is supported now.
create or replace function fx_xt(out x xt, out y xt)
as $$
declare c1 xt; c2 xt;
begin
  return;
end;
$$ language plpgsql;
select * from plpgsql_check_function('fx_xt()');
                         plpgsql_check_function                         
------------------------------------------------------------------------
 warning:00000:2:DECLARE:unused variable "c1"
 warning:00000:2:DECLARE:unused variable "c2"
 warning extra:00000:composite OUT variable "$1" is not single argument
 warning extra:00000:unmodified OUT variable "$1"
 warning extra:00000:composite OUT variable "$2" is not single argument
 warning extra:00000:unmodified OUT variable "$2"
(6 rows)

No comments:

Post a Comment