diff --git a/pkg/sql/table.go b/pkg/sql/table.go index 2cb7261e2f78..20186f7233c7 100644 --- a/pkg/sql/table.go +++ b/pkg/sql/table.go @@ -798,8 +798,8 @@ func (p *planner) createDropTablesJob( if !drainNames { detailStatus = jobspb.Status_WAIT_FOR_GC_INTERVAL } - for _, droppedDetail := range droppedDetails { - droppedDetail.Status = detailStatus + for i := range droppedDetails { + droppedDetails[i].Status = detailStatus } runningStatus := RunningStatusDrainingNames