diff --git a/planner/core/planbuilder.go b/planner/core/planbuilder.go index 76619310a4272..080cb1ca8da52 100644 --- a/planner/core/planbuilder.go +++ b/planner/core/planbuilder.go @@ -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