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 1iNLv4-0007pO-Hz for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 19:03:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNLv2-0008Bx-2a for pgsql-general@arkaria.postgresql.org; Wed, 23 Oct 2019 19:03:40 +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 1iNLv1-0008Bq-M8 for pgsql-general@lists.postgresql.org; Wed, 23 Oct 2019 19:03:39 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iNLuz-0005fn-72 for pgsql-general@lists.postgresql.org; Wed, 23 Oct 2019 19:03:38 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id E962F1086; Wed, 23 Oct 2019 21:03:34 +0200 (CEST) Date: Wed, 23 Oct 2019 21:03:34 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Is this a bug ? Message-ID: <20191023190334.GB26674@hjp.at> References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> <9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com> <24295.1571846414@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wzJLGUyc3ArbnUjN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-10-23 17:20:07 +0100, Geoff Winkless wrote: > For what it's worth, I can see a value to having >=20 > SELECT 'this is quite a long string' > 'which I've joined together ' > 'across multiple lines'; >=20 > although the advantage of it vs using a concat operator is slim. True. However, concatenation of string literals by juxtaposition isn't specific to SQL. Two other well known languages where this works (even without a newline) are C and Python. hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --wzJLGUyc3ArbnUjN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl2wpAEACgkQ8g5IURL+ KF1jig//bSie84Kwn+v1dfouiL9n2ldMgxmz49JbE15qmabt5D4gn6hn05FMLf6W usSJEgiS1FSh5swlN/ShSXwwkx6DCX5Ar/8KPiEFxhf3JGOVBi78VuNd69yYcYA4 uHu7J7PB6uVTnz2QYGhxJ9i/sZaPeSMGNlvyu96sDXphsPGdge4fvkLOB5Vqni8T IxG35BnWc2ifHq8lXVJiquQ2IC96/b5/5i4oyoE6to/KSZcirS59jWNtKAq8mlWh 6m/EyQHCNujH7Bg8NECY1dmHBEVW/jqn/gzU1L3qh9ZXZu6sglcXP5Sij34tY+gI V9PoXUteOUdB3gWz3z1N3hCfZetq997dztU+B+ZMXqKiY9vfu/YBspiHxJimS6W8 UK41amaF+ZSHgVkOq0X9oo6yq8z2IV27PlIkIGThX81kk9cjiCTn1SnGyPFnmusG pXMbDQejofuZnhDrksov1WHI6tj2mIjJNAok1tFr8tDrAKeEW4Vs39UJf0egdcv4 dRvQ/BueBM6u1d4Tkv8gsXdgQUTaqbab7KAqr3n4/uhUD+ZpRMzSw5A7M8z73uVJ 6Pds0f7lk568cAKGGftuuuRiNjSKduoYwetM0NmbJQmdZJ8+53W4R3EQb2h9OAg+ 2eBMfAmpP5hVmyvBUXHFiGURCyngeNnVmi869j3+mHmuVS35Ow4= =WQdU -----END PGP SIGNATURE----- --wzJLGUyc3ArbnUjN--