public.iterate

BlocksLoopsBranchesBlock CoverageLoop CoverageBranch Coverage
612
100.00% 
75.00% 
100.00% 
 CREATE FUNCTION public.iterate ( IN items anyarray ) RETURNS SETOF anyelement VOLATILE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19declare arrayMinIndex integer := array_lower(items, 1); arrayMaxIndex integer := array_upper(items, 1); loopIndex integer; begin if arrayMinIndex is null then return; end if; for loopIndex in arrayMinIndex .. arrayMaxIndex loop if items[loopIndex] is not null then return next items[loopIndex]; end if; end loop; end;
Notes
  1. loop never passes through
Generated by piggly 2.2.4 at April 18, 2018 21:04 CDT
Return to index