Re: Bug or feature?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug or feature?
Date: 2005-11-16 04:07:53
Message-ID: 1330.1132114073@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp> writes:
> Hi, I can run following odd command(note that no spaces between 1 and
> where):

> test=# select 1where true;

> Is this a bug or a feature? This is PostgreSQL 8.1.0.

Standard flex lexer behavior. "1" followed by "w" cannot begin
a legal token, therefore "1" is a token by itself.

This is not really any different from the fact that you can write
"2+2" without any spaces.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-11-16 04:23:06 Re: OS X 7.4 failure
Previous Message Tom Lane 2005-11-16 04:04:59 Re: OS X 7.4 failure