pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: ladayaroslav@yandex.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15273: Lexer bug with UESCAPE
Date: Wed, 11 Jul 2018 17:15:15 -0400
Message-ID: <18952.1531343715@sss.pgh.pa.us> (raw)
In-Reply-To: <18384.1531343105@sss.pgh.pa.us>
References: <153124291307.1408.15617588871690313363@wrigleys.postgresql.org>
	<23850.1531252251@sss.pgh.pa.us>
	<87bmbekq90.fsf@news-spur.riddles.org.uk>
	<18384.1531343105@sss.pgh.pa.us>

Oh, and one other thing:

regression=# select 'foo'
regression-# 'bar';
 ?column? 
----------
 foobar
(1 row)

regression=# select 'foo' -- baz
'bar';
 ?column? 
----------
 foobar
(1 row)

regression=# select 'foo' /* baz */
'bar';
ERROR:  syntax error at or near "'bar'"
LINE 2: 'bar';
        ^

So we already have the exact same restriction in all multi-line forms
of literal.  That's far older than the UESCAPE business, and nobody's
complained about it that I can recall.

			regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <18952.1531343715@sss.pgh.pa.us>
Permalink:  ../18952.1531343715@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18952.1531343715@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, ladayaroslav@yandex.ru
  Subject: Re: BUG #15273: Lexer bug with UESCAPE
  In-Reply-To: <18952.1531343715@sss.pgh.pa.us>
  References: <153124291307.1408.15617588871690313363@wrigleys.postgresql.org> <23850.1531252251@sss.pgh.pa.us> <87bmbekq90.fsf@news-spur.riddles.org.uk> <18384.1531343105@sss.pgh.pa.us> <18952.1531343715@sss.pgh.pa.us>

* 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