plpgsql: another new reserved word

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема plpgsql: another new reserved word
Дата
Msg-id e51f66da0711091547i723afe1dx7589a780b67b2154@mail.gmail.com
обсуждение исходный текст
Ответы Re: plpgsql: another new reserved word  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
I stumbled on another gotcha in 8.3's plpgsql:

create or replace function foobar() returns text as $$
declare   foobar  text;
begin return 'ok'; end;
$$ language plpgsql;


Results in error:

ERROR:  syntax error at or near "foobar"
LINE 3:     foobar  text;           ^

If this is intentional, then could the error message be made better?

-- 
marko


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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: [GENERAL] Is "query" a reserved word in 8.3 plpgsql?
Следующее
От: "Marko Kreen"
Дата:
Сообщение: Re: Segmentation fault using digest from pg_crypto