Re: [INTERFACES] Bug in parser?

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Axel at ansonic <goddyna(at)ansonic(dot)com(dot)au>, pgsql-interfaces(at)postgreSQL(dot)org, "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>, blackw(at)sfu(dot)ca
Subject: Re: [INTERFACES] Bug in parser?
Date: 2000-02-08 07:13:31
Message-ID: 389FC21B.6B0B3012@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jyry Kuukkanen 2000-02-08 07:23:10 Re: [INTERFACES] Approach can't open ...
Previous Message Tim Kane 2000-02-08 07:06:39 character arrays and quotation