From bfef2e3671db9cc3c031152976e8142c2a857629 Mon Sep 17 00:00:00 2001 From: daviszhen Date: Fri, 10 Jan 2025 11:47:19 +0800 Subject: [PATCH] update --- pkg/sql/plan/query_builder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sql/plan/query_builder.go b/pkg/sql/plan/query_builder.go index aa25311d5e2fd..415b09d1ca185 100644 --- a/pkg/sql/plan/query_builder.go +++ b/pkg/sql/plan/query_builder.go @@ -4071,6 +4071,7 @@ func (builder *QueryBuilder) bindView( } viewCtx := NewBindContext(builder, nil) viewCtx.snapshot = snapshot + viewCtx.lower = ctx.lower viewData := ViewData{} err = json.Unmarshal([]byte(viewDefString), &viewData) @@ -4078,7 +4079,7 @@ func (builder *QueryBuilder) bindView( return 0, err } - originStmts, err := mysql.Parse(builder.GetContext(), viewData.Stmt, 1) + originStmts, err := mysql.Parse(builder.GetContext(), viewData.Stmt, ctx.lower) defer func() { for _, s := range originStmts { s.Free()