[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6255) SchemaExport quote foreignkey names not correct
Christoph Henniger (JIRA)
noreply at atlassian.com
Wed May 25 10:14:25 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Henniger updated HHH-6255:
------------------------------------
Attachment: foreignkey.patch
> 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.2, 3.6.3, 3.6.4
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list