Re: WIP: Allow SQL-language functions to reference parameters by parameter name

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Дата
Msg-id 4D8F4D7F.3020301@dunslane.net
обсуждение исходный текст
Ответ на Re: WIP: Allow SQL-language functions to reference parameters by parameter name  (David Fetter <david@fetter.org>)
Ответы Re: WIP: Allow SQL-language functions to reference parameters by parameter name  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers

On 03/27/2011 09:42 AM, David Fetter wrote:
> On Fri, Mar 25, 2011 at 09:12:33PM -0400, Robert Haas wrote:
>> As I've said before, I believe that the root cause of this problem is
>> that using the same syntax for variables and column names is a bad
>> idea in the first place.  If we used $foo or ?foo or ${foo} or $.foo
>> or&&foo!!$#? to mean "the parameter called foo", then this would all
>> be a non-issue.
> How about psql's :foo syntax?
>
>

Surely the time has long gone when we could have made such a choice. And 
the choice was not made in a vacuum.

cheers

andrew


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Следующее
От: 3dmashup
Дата:
Сообщение: Re: Needs Suggestion