HHH-6255 correctly handling quoting fk names

Conflicts:
	hibernate-core/src/main/java/org/hibernate/mapping/ForeignKey.java
This commit is contained in:
Brett Meyer 2013-10-07 15:16:45 -04:00
parent bc99f16b8e
commit a8393f6490
2 changed files with 2 additions and 2 deletions

View File

@ -1881,7 +1881,7 @@ public abstract class Dialect implements ConversionContext {
StringBuilder res = new StringBuilder( 30 );
res.append( " add constraint " )
.append( constraintName )
.append( quote( constraintName ) )
.append( " foreign key (" )
.append( StringHelper.join( ", ", foreignKey ) )
.append( ") references " )

View File

@ -130,7 +130,7 @@ public class ForeignKey extends Constraint {
return "alter table " +
getTable().getQualifiedName(dialect, defaultCatalog, defaultSchema) +
dialect.getDropForeignKeyString() +
getName();
dialect.quote( getName() );
}
public boolean isCascadeDeleteEnabled() {