create table bug with reserved words?

From: Chris Storah <cstorah(at)emis-support(dot)demon(dot)co(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: create table bug with reserved words?
Date: 2001-02-15 13:12:03
Message-ID: C05E7DA1218ED411BF8A00105AC95A8E016A9018@SV-CNTRMAIL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

There seems to be an inconsistency in the parsing of create table (possibly
other SQL syntax?):

create table test (call int, end, int, select int);
Fails with ERROR: parser: parse error at or near "create"

create table test (call int, end1, int, select1 int);
Works.

Call, End and Select are reserved words, but why does 'Call' work and the
others fail?
Is this a bug - should the parser cope with any reserved words as
identifiers?

Thanks,
Chris

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-02-15 15:22:41 Re: create table bug with reserved words?
Previous Message pgsql-bugs 2001-02-14 23:00:16 NOTICE: pg_setlocale()