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