Re: V0.2 patch for TODO Item: SQL-language reference parameters by name.
В списке pgsql-patches по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: V0.2 patch for TODO Item: SQL-language reference parameters by name. |
| Дата | |
| Msg-id | 12449.1194113269@sss.pgh.pa.us обсуждение |
| Ответ на | Re: V0.2 patch for TODO Item: SQL-language reference parameters by name. (David Fetter <david@fetter.org>) |
| Список | pgsql-patches |
David Fetter <david@fetter.org> writes:
> What I mean by "kinda" is that it's a standard way of handling
> parameters in Oracle and in DBI. I think it would be a very bad idea
> to require that people use the function name in parameters, as such
> names can be quite long. People using names like :foo for database
> objects could just quote them :)
At no point did I suggest *requiring* parameter names to be prefixed
with the function name. I just pointed to that as an established way
(which we borrowed from Oracle remember) of disambiguating if you insist
on using the same names for parameters as columns in the query.
The problem with trying to introduce :foo into the SQL grammar is that
we *already have* a meaning for :, and I do not wish to either break
array subscripting or put in the sorts of kluges that would be needed to
make them coexist (or should I say "kinda coexist").
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера