Re: Is this a bug ?

From: Ravi Krishna <sr_krishna(at)aol(dot)com>
To: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Is this a bug ?
Date: 2019-10-23 15:53:56
Message-ID: 1DAF2F6A-31A8-4376-A4E3-C33111B6B3F8@aol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2019-10-23 15:55:35 Re: Is this a bug ?
Previous Message Geoff Winkless 2019-10-23 15:51:02 Re: Is this a bug ?