-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sessionctx/variable: fix select variable return wrong result when variable is only global scope variable #8968
Conversation
…iable is only global scope variable
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #8968 +/- ##
==========================================
- Coverage 67.53% 67.52% -0.02%
==========================================
Files 363 363
Lines 75241 75241
==========================================
- Hits 50817 50808 -9
- Misses 19936 19943 +7
- Partials 4488 4490 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
1 similar comment
/run-all-tests |
/run-all-tests |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…iable is only global scope variable (#8968)
@crazycs520 Should we cherry pick this change to release-2.1 and release-2.0? |
…iable is only global scope variable (pingcap#8968)
…iable is only global scope variable (pingcap#8968)
…iable is only global scope variable (pingcap#8968)
What problem does this PR solve?
fix issue:#8967
What is changed and how it works?
Always get global value when the variable is only global scope.
Check List
Tests
Code changes
Side effects
Related changes
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)