Re: BUG #1099: bad syntax error localisation

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: BUG #1099: bad syntax error localisation
Дата
Msg-id 200403111601.22382.peter_e@gmx.net
обсуждение исходный текст
Ответ на BUG #1099: bad syntax error localisation  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Ответы Re: BUG #1099: bad syntax error localisation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
PostgreSQL Bugs List wrote:
> CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
>     AS 'not even SQL';
> ERROR:  syntax error at or near "not" at character 1
>
> You may notice that word "not" is not at character 1,
> where there is "CREATE".

The error message refers to the function body, which is parsed
separately and therefore starts the count at 1.

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

Предыдущее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1099: bad syntax error localisation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1098: Multiple ON INSERT rules not applied properly in the case of INSERT...SELECT