Re: [INTERFACES] Bug in parser? - Mailing list pgsql-interfaces

From Thomas Lockhart
Subject Re: [INTERFACES] Bug in parser?
Date
Msg-id 389FC21B.6B0B3012@alumni.caltech.edu
Whole thread Raw
In response to RE: [INTERFACES] Bug in parser?  ("Axel at ansonic" <goddyna@ansonic.com.au>)
List pgsql-interfaces
> * I see that the spec allows comments between segments of a string
> literal.  This works in current code:
> regression=# select 'a string' -- zzz
> regression-# ' literal';
>      ?column?
> ------------------
>  a string literal
> (1 row)
> but I'm durned if I see where that behavior is implemented.
> Do you?

It used to be implemented in psql, and might still. Looks to me that
scan.l might be missing this case (which presumably you are thinking
also).

I'm still recalling the "line break" reasoning for concatenating
literals, but maybe that was just an example from the Date book rather
than the entire rule.
                    - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-interfaces by date:

Previous
From: Tim Kane
Date:
Subject: character arrays and quotation
Next
From: Jyry Kuukkanen
Date:
Subject: Re: [INTERFACES] Approach can't open ...