Re: [INTERFACES] parser: parse error at or near... with create table - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] parser: parse error at or near... with create table
Date
Msg-id 11385.933349218@sss.pgh.pa.us
Whole thread Raw
In response to parser: parse error at or near... with create table  ("Mengelbier, Magnus" <Magnus.Mengelbier@clinicaldatacare.com>)
List pgsql-interfaces
"Mengelbier, Magnus" <Magnus.Mengelbier@clinicaldatacare.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


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: [INTERFACES] libpgtcl.so.2.0
Next
From: Mark Bedish
Date:
Subject: unsubscribe