| От | Tom Lane |
|---|---|
| Тема | Re: PL/pgSQL 'i = i + 1' Syntax |
| Дата | |
| Msg-id | 4328.1148075175@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: PL/pgSQL 'i = i + 1' Syntax (Hannu Krosing <hannu@skype.net>) |
| Список | pgsql-hackers |
Hannu Krosing <hannu@skype.net> writes:
> Ühel kenal päeval, R, 2006-05-19 kell 16:12, kirjutas Jim C. Nasby:
>> IIRC, Oracle handles this by allowing you to prefix variables with the
>> name of the function.
> what happens if your function name is the same as some table name or
> local record variable name ? would it still bite newcomers ?
Yeah. Since functions and tables have independent namespaces in PG
(dunno about Oracle), this didn't seem like much of a solution to me.
I think we should just recommend a coding practice such as _ prefix
for local variables, and leave it at that.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера