Re: Is this a bug ?

Поиск
Список
Период
Сортировка
От John W Higgins
Тема Re: Is this a bug ?
Дата
Msg-id CAPhAwGx+YDHoLfwhfRoJxagx1iVu+p6kWWmfZ0v=+aZoRkc0dA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Is this a bug ?  (Ravi Krishna <sr_krishna@aol.com>)
Список pgsql-general

On Wed, Oct 23, 2019 at 8:56 AM Ravi Krishna <sr_krishna@aol.com> wrote:
>
> Simplify:
>
> select 'a'
> db-# 'b';
> ?column?
> ----------
> ab
> (1 row)
>
> This is not a bug.
>
> https://www.postgresql.org/docs/9.2/sql-syntax-lexical.html
>
> Two string constants that are only separated by whitespace with at
> least one newline are concatenated and effectively treated as if the
> string had been written as one constant.
>
> Geoff

Shouldn't the output be 4 in that case since it is looking for('a','b','cd','e') and it should find all but cd.

 
And that means there are 3 options on the table = a, b, and e - where is the 4th item?

cd is not in the table so it cannot be found.

John

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is this a bug ?
Следующее
От: Geoff Winkless
Дата:
Сообщение: Re: Is this a bug ?