From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mengelbier, Magnus <Magnus.Mengelbier@clinicaldatacare.com>
Cc: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] parser: parse error at or near... with create table
Date: Fri, 30 Jul 1999 11:40:18 -0400
Message-ID: <11385.933349218@sss.pgh.pa.us> (raw)
In-Reply-To: <81F0C610BC68D2118F110008C7242DE51EAB58@luex1.clinicaldatacare.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, Magnus.Mengelbier@clinicaldatacare.com
Subject: Re: [INTERFACES] parser: parse error at or near... with create table
In-Reply-To: <11385.933349218@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox