Re: Minor irritant with comment parsing in a function (SQL)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Minor irritant with comment parsing in a function (SQL)
Дата
Msg-id 5159.1065648791@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Minor irritant with comment parsing in a function (SQL)  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Minor irritant with comment parsing in a function (SQL)  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> The bug here is that the scanner doesn't know that a newline (or end of
> input) is a required as part of a -- comment.

I think the minimum-damage place to fix this is by requiring \n after
{comment} in the horiz_whitespace rule.  As is, it's possible for
xqcat to match to a second quote that is in the body of a -- comment.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_resetxlog and pgscripts italian translation
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Bug Report