From: Ravi Krishna <sr_krishna@aol.com>
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Is this a bug ?
Date: Wed, 23 Oct 2019 11:53:56 -0400
Message-ID: <1DAF2F6A-31A8-4376-A4E3-C33111B6B3F8@aol.com> (raw)
In-Reply-To: <CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com>
<CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com>
>
> 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.
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: sr_krishna@aol.com, pgsqladmin@geoff.dj
Subject: Re: Is this a bug ?
In-Reply-To: <1DAF2F6A-31A8-4376-A4E3-C33111B6B3F8@aol.com>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> <CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com> <1DAF2F6A-31A8-4376-A4E3-C33111B6B3F8@aol.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