Problem in class Dialect
------------------------
Key: HHH-3667
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3667
Project: Hibernate Core
Issue Type: Bug
Components: core
Reporter: Jorge Miguel da Silva e Sá
I have a problem with Hibernate. When I add one foreignKey Constraint in one table my
application hang.
When i debug the problem, I think I found a bug in this feature (
getAddForeignKeyConstraintString).
When it does
if ( !referencesPrimaryKey )
Not should not be
if ( referencesPrimaryKey ) ?
public String getAddForeignKeyConstraintString(
String constraintName,
String[] foreignKey,
String referencedTable,
String[] primaryKey,
boolean referencesPrimaryKey) {
StringBuffer res = new StringBuffer( 30 );
res.append( " add constraint " )
.append( constraintName )
.append( " foreign key (" )
.append( StringHelper.join( ", ", foreignKey ) )
.append( ") references " )
.append( referencedTable );
if ( !referencesPrimaryKey ) {
res.append( " (" )
.append( StringHelper.join( ", ", primaryKey ) )
.append( ')' );
}
return res.toString();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira