HHH-17883 Correct original column order for primary keys
This commit is contained in:
parent
0c8bfefd1c
commit
ce56234857
|
@ -118,7 +118,7 @@ public class PrimaryKey extends Constraint {
|
|||
final List<Column> columns = getColumns();
|
||||
final Column[] columnsInOriginalOrder = new Column[columns.size()];
|
||||
for ( int i = 0; i < columnsInOriginalOrder.length; i++ ) {
|
||||
columnsInOriginalOrder[i] = columns.get( originalOrder[i] );
|
||||
columnsInOriginalOrder[originalOrder[i]] = columns.get( i );
|
||||
}
|
||||
return Arrays.asList( columnsInOriginalOrder );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue