Re: named parameters in SQL functions

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: named parameters in SQL functions
Дата
Msg-id 4B00A94C.2090105@dunslane.net
обсуждение исходный текст
Ответ на Re: named parameters in SQL functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: named parameters in SQL functions
Список pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>   
>> At Tom's suggestion I am looking at allowing use of parameter names in 
>> SQL functions instead of requiring use of $1 etc. That raises the 
>> question of how we would disambiguate a parameter name from a column 
>> name.
>>     
>
> Throw error if ambiguous.  We already resolved this in the context of
> plpgsql.
>
>             
>   

Well, if the funcname.varname gadget will work, as you suggest elsewhere 
it could, I think that would suffice. I had assumed that was just 
something in the plpgsql engine.

cheers

andrew


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: patch - Report the schema along table name in a referential failure error message
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Patch committers