hi all,
w.r.t DERBY-2945(convert lang/primarykey.sql to junit)
I have a small doubt.
There is a test for verifying a unique key can not contain nulls.
1)-- verify that a unique key can not contain nulls
create table pos1 (c1 int not null unique, c2 int);
insert into pos1 (c1) values(null);
insert into pos1 (c1) values(null);
select * from pos1;
drop table pos1;
And It tests that null values are not allowed in c1.
Irrespective of uniqueness , c1 can't contain null values as it is
defined as not null.It seems that the test is wrong.
2) I am shocked to know that Derby doesn't allow a unique key column to
contain NULL values.can some somebody justify it.?
Thank You.
--
******************************************************************************
Every problem that has been solved can be solved again in a better way
- Ravinder Reddy
*******************************************************************************
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.