Re: Declaring a field that is also an out parameter in a function - Mailing list pgsql-general

From Tom Lane
Subject Re: Declaring a field that is also an out parameter in a function
Date
Msg-id 683483.1720363067@sss.pgh.pa.us
Whole thread Raw
In response to Re: Declaring a field that is also an out parameter in a function  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Declaring a field that is also an out parameter in a function
List pgsql-general
Pavel Stehule <pavel.stehule@gmail.com> 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



pgsql-general by date:

Previous
From: Michael Nolan
Date:
Subject: Re: Declaring a field that is also an out parameter in a function
Next
From: Pavel Stehule
Date:
Subject: Re: Declaring a field that is also an out parameter in a function