pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is this a bug ?
Date: Wed, 23 Oct 2019 21:03:34 +0200
Message-ID: <20191023190334.GB26674@hjp.at> (raw)
In-Reply-To: <CAEzk6fejkodG2RCY9kjeD=a+X9+-iD4h5tSL576n529rNwFs8Q@mail.gmail.com>
References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com>
	<CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com>
	<9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com>
	<24295.1571846414@sss.pgh.pa.us>
	<a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com>
	<CAEzk6fejkodG2RCY9kjeD=a+X9+-iD4h5tSL576n529rNwFs8Q@mail.gmail.com>

On 2019-10-23 17:20:07 +0100, Geoff Winkless wrote:
> For what it's worth, I can see a value to having
> 
> SELECT 'this is quite a long string'
>                'which I've joined together '
>                'across multiple lines';
> 
> 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

-- 
   _  | 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 <https://www.edge.org/;

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (35+ messages)  latest in thread

Message-ID: <20191023190334.GB26674@hjp.at>
Permalink:  ../20191023190334.GB26674@hjp.at/
Also on:    postgresql.org/message-id/20191023190334.GB26674@hjp.at

 · 

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: hjp-pgsql@hjp.at
  Subject: Re: Is this a bug ?
  In-Reply-To: <20191023190334.GB26674@hjp.at>
  References: <6048315C-CE0E-482F-9F48-B300E4D7AC52@aol.com> <CAEzk6fdPCjF0HkbL_8NMRQHKR2k_sRNCAc67jeqBQMO0hTU3xQ@mail.gmail.com> <9df3ba0d-974d-f13d-ec91-bc22c3ab362b@gmail.com> <24295.1571846414@sss.pgh.pa.us> <a2122ac3-2aaf-d69a-bdc8-e9bf0c7b5b55@gmail.com> <CAEzk6fejkodG2RCY9kjeD=a+X9+-iD4h5tSL576n529rNwFs8Q@mail.gmail.com> <20191023190334.GB26674@hjp.at>

* 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