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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped
Дата
Msg-id 20091008145629.GB5510@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-bugs
Alvaro Herrera wrote:

> alvherre=# select 'a'
> alvherre-# 'b';
>  ?column?
> ----------
>  ab
> (1 fila)

Ah, yes -- saith scan.l:

/*
 * SQL requires at least one newline in the whitespace separating
 * string literals that are to be concatenated.  Silly, but who are we
 * to argue?  Note that {whitespace_with_newline} should not have * after
 * it, whereas {whitespace} should generally have a * after it...
 */

special_whitespace      ({space}+|{comment}{newline})
horiz_whitespace        ({horiz_space}|{comment})
whitespace_with_newline ({horiz_whitespace}*{newline}{special_whitespace}*)


--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped