public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Pavel Stehule <[email protected]>
Cc: Michael Nolan <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Declaring a field that is also an out parameter in a function
Date: Sun, 07 Jul 2024 10:37:47 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAFj8pRBcwQ3CVGj7eDFezhG-dUtrsry3T9iHf0SmEnU=YXs-LQ@mail.gmail.com>
References: <CAOzAquKPXRWp38u9cURDCd4XzKCbKLhuZvH6AQjtXGW3R6-LoQ@mail.gmail.com>
<[email protected]>
<CAFj8pRBcwQ3CVGj7eDFezhG-dUtrsry3T9iHf0SmEnU=YXs-LQ@mail.gmail.com>
Pavel Stehule <[email protected]> writes:
> (2024-07-07 09:27:14) postgres=# select * from
> plpgsql_check_function('test_function');
> ┌───────────────────────────────────────────────────────────────┐
> │ plpgsql_check_function │
> ╞═══════════════════════════════════════════════════════════════╡
> │ warning:00000:10:statement block:parameter "d3" is overlapped │
> │ Detail: Local variable overlap function parameter. │
Nice! FWIW, I think the standard terminology is "local variable
shadows function parameter".
regards, tom lane
view thread (5+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Declaring a field that is also an out parameter in a function
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox