From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Is this a bug ?
Date: Wed, 23 Oct 2019 12:00:14 -0400
Message-ID: <24295.1571846414@sss.pgh.pa.us> (raw)
In-Reply-To: <9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com>
<CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com>
<9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
Subject: Re: Is this a bug ?
In-Reply-To: <24295.1571846414@sss.pgh.pa.us>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> <CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com> <9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com> <24295.1571846414@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox