BUG with UNIQUE clause

Поиск
Список
Период
Сортировка
От Stéphane FILLON
Тема BUG with UNIQUE clause
Дата
Msg-id 000f01befedd$3f26fda0$a6373ad1@portable
обсуждение исходный текст
Ответы Re: [HACKERS] BUG with UNIQUE clause  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
 
The UNIQUE constraint doesn't work on a field if I use a DEFAULT clause on a table.
 
The following table works with UNIQUE constraint:
 
create table cltclt001(
  tcid int2,
  tcnom text unique
);
 
but this one accept several same tcnom value:
 
create table cltclt001(
  tcid int2 default nextval('cltcls001'),
  tcnom text unique
);
 
 
What's wrong with my table ?
 
Thanks in advance.
 
Stephane FILLON

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

Предыдущее
От: Theo Kramer
Дата:
Сообщение: Re: [HACKERS] ISO dates with European Format
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: [HACKERS] Re: HISTORY for 6.5.2