Skip to content

Commit

Permalink
planner: avoid alloc for paramMarker in buildValuesListOfInsert (#25996
Browse files Browse the repository at this point in the history
…) (#26076)
  • Loading branch information
ti-srebot authored Jul 23, 2021
1 parent c646ba9 commit 4f0bfc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planner/core/planbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3010,6 +3010,8 @@ func (b *PlanBuilder) buildValuesListOfInsert(ctx context.Context, insert *ast.I
Value: x.Datum,
RetType: &x.Type,
}
case *driver.ParamMarkerExpr:
expr, err = expression.ParamMarkerExpression(b.ctx, x)
default:
b.curClause = fieldList
// subquery in insert values should not reference upper scope
Expand Down

0 comments on commit 4f0bfc6

Please sign in to comment.