mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-6255 correctly handling quoting fk names
This commit is contained in:
parent
0593cbbc5a
commit
bc31357436
@ -2052,7 +2052,7 @@ public String getAddForeignKeyConstraintString(
|
||||
final StringBuilder res = new StringBuilder( 30 );
|
||||
|
||||
res.append( " add constraint " )
|
||||
.append( constraintName )
|
||||
.append( quote( constraintName ) )
|
||||
.append( " foreign key (" )
|
||||
.append( StringHelper.join( ", ", foreignKey ) )
|
||||
.append( ") references " )
|
||||
|
@ -133,7 +133,7 @@ public String sqlDropString(Dialect dialect, String defaultCatalog, String defau
|
||||
if ( dialect.supportsIfExistsBeforeConstraintName() ) {
|
||||
buf.append( "if exists " );
|
||||
}
|
||||
buf.append( getName() );
|
||||
buf.append( dialect.quote( getName() ) );
|
||||
if ( dialect.supportsIfExistsAfterConstraintName() ) {
|
||||
buf.append( " if exists" );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user