Re: multiple default values specified for column?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: smorrey(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: multiple default values specified for column?
Date: 2005-10-07 14:38:40
Message-ID: 20051007073755.X36732@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 7 Oct 2005 smorrey(at)gmail(dot)com wrote:

> Hello pgsql is complaining and I can't seem to figure out what the
> error is talking about.
> Basically it's claiming that multiple default vaues are being
> specified, but nowhere in statement below is there one single place
> where I can see an error.
> Please help!

Bigserial implies a default and then you placed a default on the column in
addition.

>
> SQL error:
>
> ERROR: multiple default values specified for column "txnid" of table
> "ec_transaction"
>
> In statement:
>
> CREATE TABLE ec_transaction (
> txnid BIGSERIAL NOT NULL DEFAULT
> nextval('public.ec_transaction_txnid_seq') ,

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2005-10-07 14:45:06 Re: PostgreSQL 8.1 vs. MySQL 5.0?
Previous Message Tom Lane 2005-10-07 14:34:17 Re: multiple default values specified for column?