| От | Andreas Seltenreich |
|---|---|
| Тема | Re: PL/pgSQL 'i = i + 1' Syntax |
| Дата | |
| Msg-id | 87zmhevojb.fsf@gate450.dyndns.org обсуждение |
| Ответ на | Re: PL/pgSQL 'i = i + 1' Syntax (Mark Dilger <pgsql@markdilger.com>) |
| Список | pgsql-hackers |
Mark Dilger schrob: > Tom Lane wrote: >> No it isn't. The plpgsql scanner treats := and = as *the same token*. >> They can be interchanged freely. This has nothing to do with the case >> of modifying a loop variable in particular. > > I disagree. If the scanner treated them the same, then > > if i := 1 then ... > > would work, but it doesn't. The := is rejected in a conditional. Try the > following code if you don't believe me: You're confusing the PL/pgSQL scanner with the SQL scanner. Expressions in PL/pgSQL are handed down to the SQL parser. regards, andreas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера