From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Herwig Goemans <herwig.goemans@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.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: Mon, 13 Sep 2021 12:04:48 -0400
Message-ID: <423907.1631549088@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRDLR-g_0-xR=Gue=9tm-k-aU5xGJ0wTNL8MW3H14HegPw@mail.gmail.com>
References: <868ae948-e3ca-c7ec-95a6-83cfc08ef750@gmail.com>
<CAFj8pRDLR-g_0-xR=Gue=9tm-k-aU5xGJ0wTNL8MW3H14HegPw@mail.gmail.com>
Pavel Stehule <pavel.stehule@gmail.com> writes:
> po 13. 9. 2021 v 13:23 odesÃlatel Herwig Goemans <herwig.goemans@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, herwig.goemans@gmail.com, pgsql-general@lists.postgresql.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.
In-Reply-To: <423907.1631549088@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox