Skip to content

Commit

Permalink
HHH-6255 correctly handling quoting fk names
Browse files Browse the repository at this point in the history
Conflicts:
	hibernate-core/src/main/java/org/hibernate/mapping/ForeignKey.java
  • Loading branch information
brmeyer committed Oct 7, 2013
1 parent bc99f16 commit a8393f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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 " )
Expand Down
Expand Up @@ -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() {
Expand Down

0 comments on commit a8393f6

Please sign in to comment.