HHH-6255 correctly handling quoting fk names
Conflicts: hibernate-core/src/main/java/org/hibernate/mapping/ForeignKey.java
This commit is contained in:
parent
bc99f16b8e
commit
a8393f6490
|
@ -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 " )
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue