Re: bugfix: BUG #15477: Procedure call with named inout refcursor parameter - "invalid input syntax for type boolean"

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Subject: Re: bugfix: BUG #15477: Procedure call with named inout refcursor parameter - "invalid input syntax for type boolean"
Date: 2018-11-01 12:29:42
Message-ID: CAFj8pRCF3pia7gScM0jh7vY9rEuqN7fbnUV+jymRTLEXZeRDNA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

čt 1. 11. 2018 v 13:10 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
napsal:

>
>
> čt 1. 11. 2018 v 13:00 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> napsal:
>
>> Hi
>>
>> The processing of named parameters inside CALL statement is not correct.
>>
>> It is my code :-/. I am sorry
>>
>> Attached patch fix it.
>>
>> This still doesn't fix INOUT variables with default value - so is not
>> fully correct, but in this moment, it can show, where is a core of this
>> issue.
>>
>
> This version disallow INOUT default variables from plpgsql
>

Probably correct solution is saving transformed arguments after
expand_function_arguments and iterating over transformed argument list, not
over
original argument list.

>
>
>> Regards
>>
>> Pavel
>>
>>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2018-11-01 13:11:12 Re: Commitfest 2018-11
Previous Message Daniel Gustafsson 2018-11-01 12:21:17 Re: Commitfest 2018-11