Re: BUG #1099: bad syntax error localisation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1099: bad syntax error localisation
Дата
Msg-id 20207.1079020628@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1099: bad syntax error localisation  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> 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

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

I'm surprised there is no CONTEXT line here though.  You would have
gotten one for a syntax error in plpgsql; I must have overlooked doing
it for SQL.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1098: Multiple ON INSERT rules not applied properly in the case of INSERT...SELECT
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Glitch: cannot use Arrays with Raise Notice