pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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: Tue, 7 Aug 2018 13:46:56 -0400
Message-ID: <20180807174656.GF7297@momjian.us> (raw)
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>

On Wed, Jul 11, 2018 at 05:15:15PM -0400, Tom Lane wrote:
> 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.

Do we have any comment in the lexer C files about this so we don't
revisit the issue?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




view thread (6+ messages)

Message-ID: <20180807174656.GF7297@momjian.us>
Permalink:  ../20180807174656.GF7297@momjian.us/
Also on:    postgresql.org/message-id/20180807174656.GF7297@momjian.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: bruce@momjian.us, tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, ladayaroslav@yandex.ru
  Subject: Re: BUG #15273: Lexer bug with UESCAPE
  In-Reply-To: <20180807174656.GF7297@momjian.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> <20180807174656.GF7297@momjian.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