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
20091008145451.GA5510@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped "Geoff Tolley" <geoff.tolley@yougov.com>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped Tom Lane <tgl@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>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: BUG #5102: Silent IN (list of strings) failure to detect syntax error when list is linewrapped "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Geoff Tolley wrote:

> postgres=# SELECT 'hello' WHERE '1' IN ('1' '2');
> ERROR:  syntax error at or near "'2'"
> LINE 1: SELECT 'hello' WHERE '1' IN ('1' '2');
>                                          ^
> postgres=# SELECT 'hello' WHERE '1' IN ('1'
> postgres(#  '2');
>  ?column?
> ----------
> (0 rows)

I guess what's happening here is this:

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


I don't know much about this oddity but my first guess is that it's
mandated by the SQL standard.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-bugs по дате отправления
От: Walter Mesz
Дата:
От: Alvaro Herrera
Дата:
FAQ