using explain to explain a sql which has SET_VAR in binding, SET_VAR becomes session level #59822
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/moderate
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
directly explain the SQL or execute it with binding, the session var is not changed after the execution is finished.
but if we explain the SQL which has a binding, and the binding has SET_VAR, we'll see that the SET_VAR changes the value of session var.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master branch
The text was updated successfully, but these errors were encountered: