-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: SchemaUpdate and foreign key constraints
PostPosted: Fri Mar 12, 2004 8:45 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
The problem with the schemaupdate on "update" is that it will try to alter table and add foreign key constraints that are already there. Saw in another thread that it also does this for indexes. I don't think schemaupdate should try to add things to a column that already exists.

I get this every single time using HSQLDB:
SEVERE: Column types do not match in statement [alter table usersys_User add constraint FK42F982E8D1B foreign key (id) references consys_Contact]

And when it does this in mysql, you get mysql complaining about reaching it's maximum.

What do you think about it not trying to do this type of thing if the column that it is trying to do it on already exists?
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2004 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The mysql problem is fixed in CVS, and we don't care about ignoring some exceptions about already existing constraints.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2004 12:40 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
Awesome, so that'll be in next release?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.