Skip to content

Commit

Permalink
sql: correctly reset the planner in the copy shim
Browse files Browse the repository at this point in the history
Previously, we forgot to update the txn of the eval context of the
planner.

Release note: None
  • Loading branch information
yuzefovich committed Sep 30, 2022
1 parent aaca5ce commit a1c893f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sql/copyshim.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func RunCopyFrom(
p.cancelChecker.Reset(ctx)
p.optPlanningCtx.init(p)
p.resetPlanner(ctx, txn, stmtTS, p.sessionDataMutatorIterator.sds.Top())
p.extendedEvalCtx.Context.Txn = txn
}
p, cleanup := newInternalPlanner("copytest",
txn,
Expand Down

0 comments on commit a1c893f

Please sign in to comment.