-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor, session, sessionctx: fix the error message of read-only variable is corrupted #21948
Conversation
PTAL @bb7133 |
|
session/session_test.go
Outdated
func (s *testSessionSerialSuite) TestIssue21944(c *C) { | ||
tk1 := testkit.NewTestKitWithInit(c, s.store) | ||
_, err := tk1.Exec("set @@tidb_current_ts=1;") | ||
c.Assert(err.Error(), Equals, "[variable:1621]tidb_current_ts variable 'tidb_current_ts' is read-only. Use SET tidb_current_ts to assign the value") |
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.
This is different from the expected error message described in #21944
PTAL @SunRunAway @morgo |
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
/merge |
/run-all-tests |
…iable is corrupted (pingcap#21948)
What problem does this PR solve?
Issue Number: close #21944
Problem Summary:
What is changed and how it works?
What's Changed:
fix the error message of read-only variable is corrupted
How it Works:
format the error message when read-only variable is set
Check List
Tests
Side effects
Release note