File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1157,12 +1157,13 @@ func newOptTable(
11571157 canUseTombstones := idx .ImplicitPartitioningColumnCount () == 1 &&
11581158 partitionColumn .GetType ().Family () == types .EnumFamily
11591159 ot .uniqueConstraints = append (ot .uniqueConstraints , optUniqueConstraint {
1160- name : idx .GetName (),
1161- table : ot .ID (),
1162- columns : idx .IndexDesc ().KeyColumnIDs [idx .IndexDesc ().ExplicitColumnStartIdx ():],
1163- withoutIndex : true ,
1164- canUseTombstones : canUseTombstones ,
1165- tombstoneIndexOrdinal : idx .Ordinal (),
1160+ name : idx .GetName (),
1161+ table : ot .ID (),
1162+ columns : idx .IndexDesc ().KeyColumnIDs [idx .IndexDesc ().ExplicitColumnStartIdx ():],
1163+ withoutIndex : true ,
1164+ canUseTombstones : canUseTombstones ,
1165+ // One would assume that this would be idx.Ordinal(), but they can differ during schema change
1166+ tombstoneIndexOrdinal : i ,
11661167 predicate : idx .GetPredicate (),
11671168 // TODO(rytaft): will we ever support an unvalidated unique constraint
11681169 // here?
You can’t perform that action at this time.
0 commit comments