Re: [INTERFACES] Bug in parser?

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [INTERFACES] Bug in parser?
Дата
Msg-id 389FC21B.6B0B3012@alumni.caltech.edu
обсуждение исходный текст
Ответ на RE: [INTERFACES] Bug in parser?  ("Axel at ansonic" <goddyna@ansonic.com.au>)
Список 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 по дате отправления:

Предыдущее
От: Tim Kane
Дата:
Сообщение: character arrays and quotation
Следующее
От: Jyry Kuukkanen
Дата:
Сообщение: Re: [INTERFACES] Approach can't open ...