HHH-6255 correctly handling quoting fk names
This commit is contained in:
parent
0593cbbc5a
commit
bc31357436
|
@ -2052,7 +2052,7 @@ public abstract class Dialect implements ConversionContext {
|
|||
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 class ForeignKey extends Constraint {
|
|||
if ( dialect.supportsIfExistsBeforeConstraintName() ) {
|
||||
buf.append( "if exists " );
|
||||
}
|
||||
buf.append( getName() );
|
||||
buf.append( dialect.quote( getName() ) );
|
||||
if ( dialect.supportsIfExistsAfterConstraintName() ) {
|
||||
buf.append( " if exists" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue