SchemaExport quote foreignkey names not correct
-----------------------------------------------
Key: HHH-6255
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6255
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.4, 3.6.3, 3.6.2
Reporter: Christoph Henniger
Attachments: foreignkey.patch
the attached below patch will fix this issue:
@@ -58,7 +58,7 @@ public class ForeignKey extends Constraint {
i++;
}
String result = dialect.getAddForeignKeyConstraintString(
- constraintName, cols, referencedTable.getQualifiedName(dialect, defaultCatalog,
defaultSchema), refcols, isReferenceToPrimaryKey()
+ dialect.quote(constraintName), cols, referencedTable.getQualifiedName(dialect,
defaultCatalog, defaultSchema), refcols, isReferenceToPrimaryKey()
);
return cascadeDeleteEnabled && dialect.supportsCascadeDelete() ?
result + " on delete cascade" :
--
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