7.4: serial not working ?

Поиск
Список
Период
Сортировка
От vertigo
Тема 7.4: serial not working ?
Дата
Msg-id cc3d7m$j71$3@atlantis.news.tpi.pl
обсуждение исходный текст
Ответы Re: 7.4: serial not working ?  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-bugs
Hello
i upgraded postgresql from 7.3 to 7.4 and noticed that SERIAL
exists but does not working. Example:
My table:
create table1(
id SERIAL,
name VARCHAR(100)
);

insert into table1 (name) values('name1');
ERROR:  duplicate key violates unique constraint "table1_pkey"

Why ? I want to have autoincrementation. I do not know (when i insert
record) what id values should it have.
How can i solve this problem ?

Thanx
Michal

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

Предыдущее
От: Martin Pitt
Дата:
Сообщение: Re: Fwd: postgresql-autodoc - missinterprets "version"
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: 7.4: serial not working ?