Re: Is this a bug ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is this a bug ?
Дата
Msg-id 24295.1571846414@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is this a bug ?  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: Is this a bug ?  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> On 10/23/19 10:51 AM, Geoff Winkless wrote:
>> 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.

> Then -- since the 'e' is separated from 'd' by a comma, the result should be
> "4", not "3".

No, because your command is equivalent to

    select count(*) from bugtest where fld1 in ('a','b','cd','e');

'cd' does not match any of the table rows, so 3 is the correct answer.

> No doubt: it's a bug, no matter what the Pg devs say.

Complain to the SQL standards committee, not us.

            regards, tom lane



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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Is this a bug ?
Следующее
От: Fabio Ugo Venchiarutti
Дата:
Сообщение: Re: Is this a bug ?