Re: [INTERFACES] parser: parse error at or near... with create table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mengelbier, Magnus" <Magnus(dot)Mengelbier(at)clinicaldatacare(dot)com>
Cc: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] parser: parse error at or near... with create table
Date: 1999-07-30 15:40:18
Message-ID: 11385.933349218@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Mengelbier, Magnus" <Magnus(dot)Mengelbier(at)clinicaldatacare(dot)com> writes:
> Error executing query
> create table "asdfs" ("fds" serial NOT NULL )
> PostgreSQL error message:
> Error: parser: parse error at or near "not"

Hmm. NOT NULL is implied by SERIAL column type, so you can just omit
that clause, but it's irritating that the parser won't accept the
explicit specification. It looks like the grammar is set up to allow
no column constraints except PRIMARY KEY after SERIAL. That seems
unnecessarily restrictive...

regards, tom lane

Browse pgsql-interfaces by date

  From Date Subject
Next Message Mark Bedish 1999-07-30 16:30:50 unsubscribe
Previous Message Tom Lane 1999-07-30 15:31:17 Re: [INTERFACES] libpgtcl.so.2.0