pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gianni Ceccarelli <dakkar@thenautilus.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is this a bug ?
Date: Wed, 23 Oct 2019 16:48:27 +0100
Message-ID: <20191023164827.6174d533@exelion> (raw)
In-Reply-To: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com>

Weird, but apparently not a bug. From
https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS

> 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. For example:
>
>   SELECT 'foo'
>   'bar';
>
> is equivalent to:
>
>   SELECT 'foobar';
>
> but:
>
>   SELECT 'foo'      'bar';
>
> is not valid syntax. (This slightly bizarre behavior is specified by
> SQL; PostgreSQL is following the standard.)

-- 
	Dakkar - <Mobilis in mobile>
	GPG public key fingerprint = A071 E618 DD2C 5901 9574
	                             6FE2 40EA 9883 7519 3F88
	                    key id = 0x75193F88





view thread (35+ messages)  latest in thread

Message-ID: <20191023164827.6174d533@exelion>
Permalink:  ../20191023164827.6174d533@exelion/
Also on:    postgresql.org/message-id/20191023164827.6174d533@exelion

 · 

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: dakkar@thenautilus.net
  Subject: Re: Is this a bug ?
  In-Reply-To: <20191023164827.6174d533@exelion>
  References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> <20191023164827.6174d533@exelion>

* 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