| From: | Bruce Momjian <bruce(at)momjian(dot)us> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, ladayaroslav(at)yandex(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org | 
| Subject: | Re: BUG #15273: Lexer bug with UESCAPE | 
| Date: | 2018-08-07 17:46:56 | 
| Message-ID: | 20180807174656.GF7297@momjian.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-bugs | 
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(at)momjian(dot)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 +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2018-08-07 18:40:13 | Re: BUG #15310: pg_upgrade dissociates event triggers from extensions | 
| Previous Message | Bruce Momjian | 2018-08-07 17:23:40 | Re: BUG #15271: Documentation / Error reporting on GUC parameter change |