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
Дата
Msg-id 4ACDBAF3020000250002B73A@gw.wicourts.gov
обсуждение исходный текст
Ответ на BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped  ("Geoff Tolley" <geoff.tolley@yougov.com>)
Список pgsql-bugs
"Geoff Tolley" <geoff.tolley@yougov.com> wrote:

> postgres=# SELECT 'hello' WHERE '1' IN ('1'
> postgres(#  '2');

Per the SQL standard, that is the same as

SELECT 'hello' WHERE '1' IN ('12');

I believe that's intended to make it easier to code long string
literals without creating query text which has long line lengths, but
they (understandably) don't require a minimum length for the string
fragments.

-Kevin

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

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