I have at least got to the bottom of the problem. There is another
foreign key constraint for that table:

alter table user_roles add constraint FK_USERROLES_USER_ID foreign key
(user_id) references users;

If I drop this then the original DROP PRIMARY KEY statement will work.

This seems a bit wrong - is it a bug?
-- 
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