Re: Bug or feature? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug or feature?
Date
Msg-id 1330.1132114073@sss.pgh.pa.us
Whole thread Raw
In response to Bug or feature?  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-hackers
Tatsuo Ishii <ishii@sraoss.co.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: OS X 7.4 failure
Next
From: "Jim C. Nasby"
Date:
Subject: Re: OS X 7.4 failure