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 @@ -1145,12 +1145,13 @@ func newOptTable(
11451145 canUseTombstones := idx .ImplicitPartitioningColumnCount () == 1 &&
11461146 partitionColumn .GetType ().Family () == types .EnumFamily
11471147 ot .uniqueConstraints = append (ot .uniqueConstraints , optUniqueConstraint {
1148- name : idx .GetName (),
1149- table : ot .ID (),
1150- columns : idx .IndexDesc ().KeyColumnIDs [idx .IndexDesc ().ExplicitColumnStartIdx ():],
1151- withoutIndex : true ,
1152- canUseTombstones : canUseTombstones ,
1153- tombstoneIndexOrdinal : idx .Ordinal (),
1148+ name : idx .GetName (),
1149+ table : ot .ID (),
1150+ columns : idx .IndexDesc ().KeyColumnIDs [idx .IndexDesc ().ExplicitColumnStartIdx ():],
1151+ withoutIndex : true ,
1152+ canUseTombstones : canUseTombstones ,
1153+ // One would assume that this would be idx.Ordinal(), but they can differ during schema change
1154+ tombstoneIndexOrdinal : i ,
11541155 predicate : idx .GetPredicate (),
11551156 // TODO(rytaft): will we ever support an unvalidated unique constraint
11561157 // here?
You can’t perform that action at this time.
0 commit comments