Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdf0041

Browse files
funbringervbwagner
authored andcommitted
'return next'-related bugfixes
1 parent65602a3 commitfdf0041

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎contrib/dump_stat/dump_stat--1.0.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,16 @@ CREATE FUNCTION dump_statistic(schema_name text, table_name text) RETURNS SETOF
380380
DECLARE
381381
qual_relnametext;
382382
relidoid;
383+
itext;
383384

384385
BEGIN
385386
qual_relname := quote_ident(schema_name)||
386387
'.'|| quote_ident(table_name);
387388

388-
return next dump_statistic(qual_relname::regclass);
389+
for iinselect dump_statistic(qual_relname::regclass) loop
390+
return next i;
391+
end loop;
392+
389393
return;
390394

391395
EXCEPTION
@@ -416,6 +420,8 @@ CREATE FUNCTION dump_statistic(schema_name text) RETURNS SETOF TEXT AS $$
416420
return next i;
417421
end loop;
418422
end loop;
423+
424+
return;
419425
END;
420426
$$ LANGUAGE plpgsql;
421427

@@ -436,5 +442,7 @@ CREATE FUNCTION dump_statistic() RETURNS SETOF TEXT AS $$
436442
return next i;
437443
end loop;
438444
end loop;
445+
446+
return;
439447
END;
440448
$$ LANGUAGE plpgsql;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp