mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
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 String getAddForeignKeyConstraintString(
|
||||
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 String sqlDropString(Dialect dialect, String defaultCatalog, String defau
|
||||
return "alter table " +
|
||||
getTable().getQualifiedName(dialect, defaultCatalog, defaultSchema) +
|
||||
dialect.getDropForeignKeyString() +
|
||||
getName();
|
||||
dialect.quote( getName() );
|
||||
}
|
||||
|
||||
public boolean isCascadeDeleteEnabled() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user