Re: BUG #15273: Lexer bug with UESCAPE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: ladayaroslav(at)yandex(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15273: Lexer bug with UESCAPE
Date: 2018-07-11 21:15:15
Message-ID: 18952.1531343715@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2018-07-12 07:59:40 BUG #15277: ts_headline strips things that look like HTML tags and it cannot be disabled
Previous Message Tom Lane 2018-07-11 21:05:05 Re: BUG #15273: Lexer bug with UESCAPE