Skip to content

Commit

Permalink
opt: remove no-op that adds extra columns to the needed set
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
Ridwan Sharif committed Jul 9, 2019
1 parent ff6ce77 commit 00c9100
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/sql/opt/norm/prune_cols.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,5 @@ func (c *CustomFuncs) NeededMutationReturnCols(
returningColSet.Add(tabID.ColumnID(primaryIndex.Column(i).Ordinal))
}

// Deal with the the RETURNING * case.
if len(projections) == 0 && passthrough.Len() == 0 {
for i, n := 0, primaryIndex.ColumnCount(); i < n; i++ {
returningColSet.Add(tabID.ColumnID(primaryIndex.Column(i).Ordinal))
}
}

return returningColSet
}

0 comments on commit 00c9100

Please sign in to comment.