Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
daviszhen committed Jan 10, 2025
1 parent 43ed847 commit bfef2e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sql/plan/query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4071,14 +4071,15 @@ func (builder *QueryBuilder) bindView(
}
viewCtx := NewBindContext(builder, nil)
viewCtx.snapshot = snapshot
viewCtx.lower = ctx.lower

viewData := ViewData{}
err = json.Unmarshal([]byte(viewDefString), &viewData)
if err != nil {
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()
Expand Down

0 comments on commit bfef2e3

Please sign in to comment.