Skip to content

Commit 580af7e

Browse files
committed
HHH-8496 TableCatalog and TableSchema arguments mistaken in DB update-script.
1 parent d0b556e commit 580af7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ public List<SchemaUpdateScript> generateSchemaUpdateScriptList(Dialect dialect,
12341234
String constraintString = uniqueKey.sqlCreateString( dialect, mapping, tableCatalog, tableSchema );
12351235
if ( constraintString != null && !constraintString.isEmpty() )
12361236
if ( constraintMethod.equals( UniqueConstraintSchemaUpdateStrategy.DROP_RECREATE_QUIETLY ) ) {
1237-
String constraintDropString = uniqueKey.sqlDropString( dialect, tableCatalog, tableCatalog );
1237+
String constraintDropString = uniqueKey.sqlDropString( dialect, tableCatalog, tableSchema );
12381238
scripts.add( new SchemaUpdateScript( constraintDropString, true) );
12391239
}
12401240
scripts.add( new SchemaUpdateScript( constraintString, true) );

0 commit comments

Comments
 (0)