Re: multiple default values specified for column?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: multiple default values specified for column?
Дата
Msg-id 20051007073755.X36732@megazone.bigpanda.com
обсуждение исходный текст
Ответ на multiple default values specified for column?  (smorrey@gmail.com)
Список pgsql-general
On Fri, 7 Oct 2005 smorrey@gmail.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') ,


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: multiple default values specified for column?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: PostgreSQL 8.1 vs. MySQL 5.0?