HHH-6565 : Unique constraint columns that already exist in the table are not found
This commit is contained in:
parent
446fcc6af8
commit
e1f86077c2
|
@ -945,7 +945,7 @@ public class Binder {
|
|||
|
||||
UniqueKey uniqueKey = table.getOrCreateUniqueKey( constraintName );
|
||||
for ( String columnName : constraintSource.columnNames() ) {
|
||||
uniqueKey.addColumn( table.locateOrCreateColumn( columnName ) );
|
||||
uniqueKey.addColumn( table.locateOrCreateColumn( quoteIdentifier( columnName ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue