Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNIsG-0007kO-17 for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 15:48:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNIsE-0003go-Pd for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 15:48:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNIsE-0003gh-CR for pgsql-general@lists.postgresql.org; Wed, 23 Oct 2019 15:48:34 +0000 Received: from mail.thenautilus.net ([5.79.87.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iNIsB-0003L4-DA for pgsql-general@lists.postgresql.org; Wed, 23 Oct 2019 15:48:33 +0000 Received: (qmail 27507 invoked from network); 23 Oct 2019 15:48:28 -0000 Received: from unknown (HELO exelion) (dakkar@::ffff:10.111.0.30) by 0 with ESMTPA; 23 Oct 2019 15:48:28 -0000 Date: Wed, 23 Oct 2019 16:48:27 +0100 From: Gianni Ceccarelli To: pgsql-general@lists.postgresql.org Subject: Re: Is this a bug ? Message-ID: <20191023164827.6174d533@exelion> In-Reply-To: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88