Hi,

This also seems to work for PostgreSQL and HSQLDB. It fails for Derby
and H2. I will add a feature request (patches are welcome of course):

drop table t;
create table t(a int);
-- supposed to work
alter table t add constraint x primary key(a);

drop table t;
create table t(a int);
insert into t values(1);
-- supposed to work
alter table t add constraint x primary key(a);

drop table t;
create table t(a int);
insert into t values(null);
-- not supposed to work
alter table t add constraint x primary key(a);

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to