HHH-6565 : Unique constraint columns that already exist in the table are not found

This commit is contained in:
Gail Badner 2011-08-10 13:45:29 -07:00
parent 446fcc6af8
commit e1f86077c2
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) ) );
}
}
}