bug in "create unique index"

From: Domingo Alvarez Duarte <domingo(at)dad-it(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: bug in "create unique index"
Date: 2001-05-12 22:07:11
Message-ID: 3AFDB40F.AFC960BB@dad-it.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

when creating a index unique in a table that accept nulls the unique
constraint doesn't work.

Example:
---
create table test_unique(i1 integer, i2 integer, unique(i1,i2);
insert into test_unique(1,null);
insert into test_unique(1,null);
insert into test_unique(1,null);
---
all "inserts" above insert sucefully.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-05-12 22:18:25 Re: 7.1.2 release
Previous Message Bruce Momjian 2001-05-12 21:38:39 Re: Re: [HACKERS] Outstanding patches