Re: ERROR: control reached end of function without RETURN, except, it is not a function it is a procedure or a nameless block.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Herwig Goemans <herwig(dot)goemans(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: ERROR: control reached end of function without RETURN, except, it is not a function it is a procedure or a nameless block.
Date: 2021-09-13 16:04:48
Message-ID: 423907.1631549088@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> po 13. 9. 2021 v 13:23 odesílatel Herwig Goemans <herwig(dot)goemans(at)gmail(dot)com>
> napsal:
>> I get an error in a stored procedure - not a stored function mind you -
>> control reached end of function without RETURN
>> The error occurs when doing an exit <label> in a stored procedure.

> This is Postgres's bug

Yeah, agreed. Looks reasonably simple to fix, though.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Israel Brewster 2021-09-13 17:56:35 Fastest option to transfer db?
Previous Message Pavel Stehule 2021-09-13 11:44:10 Re: ERROR: control reached end of function without RETURN, except, it is not a function it is a procedure or a nameless block.