Re: bugfix for cursor arguments in named notation

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Re: bugfix for cursor arguments in named notation
Дата
Msg-id 4F7D524D.9010504@gmail.com
обсуждение исходный текст
Ответ на Re: bugfix for cursor arguments in named notation  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bugfix for cursor arguments in named notation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2012-04-04 17:10, Tom Lane wrote:
> Yeb Havinga<yebhavinga@gmail.com>  writes:
>> Using a cursor argument name equal to another plpgsql variable results
>> in the error:
>> cursor .. has no argument named ""
> I think a better way would be to temporarily set
> plpgsql_IdentifierLookup to IDENTIFIER_LOOKUP_DECLARE, so as to suppress
> variable name lookup in the first place.  The patch as you have it seems
> to me to make too many assumptions about what name lookup might produce.
>
>

Thank you for looking at it. Attached is a patch that implements your
suggestion.

regards,
Yeb


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: Re: [BUGS] BUG #6572: The example of SPI_execute is bogus
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: patch: improve SLRU replacement algorithm