-->
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.  [ 1 post ] 
Author Message
 Post subject: A bug generating SQL for MySQL?
PostPosted: Thu Jan 06, 2005 12:12 am 
Newbie

Joined: Tue Jan 04, 2005 11:06 am
Posts: 15
Hibernate version: 2.1.6

Name and version of the database you are using: MySQL 4.0.20

I set up a 1-1 mapping between two classes and the following
sql is generated as first line of my sql file:

The generated SQL (show_sql=true):

// there is more, but this is the line in question:

alter table TRADDRS drop constraint FKEB2CBEC414381;

When I source the sql in the mysql interpreter, it chokes.
I referred to syntax for 'alter table' in mysql manual and
didn't see any alter table....drop contraint...
but did see alter table...drop index.

I changed generated line to alter table ...drop index
and it worked.

Are we looking at a bug here?

Rob

_________________
Rob Gordon
SuffolkSoft, Inc.
Westby, WI


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

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.