pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is this a bug ?
Date: Wed, 23 Oct 2019 11:09:51 -0500
Message-ID: <a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com> (raw)
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>

On 10/23/19 11:00 AM, Tom Lane wrote:
> 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.

Yes, that's my mistake.

>> No doubt: it's a bug, no matter what the Pg devs say.
> Complain to the SQL standards committee, not us.

As much as I hate to say it, MSFT was right to ignore this bug in the standard.


-- 
Angular momentum makes the world go 'round.





view thread (35+ messages)  latest in thread

Message-ID: <a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com>
Permalink:  ../a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com/
Also on:    postgresql.org/message-id/a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Is this a bug ?
  In-Reply-To: <a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com>
  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> <a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com>

* 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