Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped
Дата
Msg-id 25173.1255017970@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> Shouldn't that be
> special_whitespace        ({space}+|{comment}|{newline})

No, scratch that ... {comment} is the -- form of comment and the newline
is to terminate the comment.

The actual issue here seems to be that the whitespace productions only
deal with the -- form of comment, so that's the only kind you can embed
between sections of a string literal.  This is okay per SQL92 but we
didn't upgrade it to SQL99, which appears to allow /* comments between
sections too.

Right offhand that looks like it would be *vastly* more work than it'd
be worth :-( --- there's no way to do /* comments without multiple
lexer rules.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped
Следующее
От: Michael Renner
Дата:
Сообщение: Re: BUG #5103: "pg_ctl -w (re)start" fails with custom unix_socket_directory