-
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
session: set Sleep state for process info #7826
Conversation
@@ -712,6 +712,9 @@ func (s *session) SetProcessInfo(sql string) { | |||
State: s.Status(), | |||
Info: sql, | |||
} | |||
if sql == "" { |
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.
If the query is sent through the binary protocol with prepare-execute method, will the sql
be an empty string?
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.
No, SetProcessInfo
will use OriginText
of the execute statement. It is set in CompileExecutePreparedStmt
.
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.
OK
/run-all-tests |
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
What problem does this PR solve?
Fixes #7825
What is changed and how it works?
Set the process command to
Sleep
ifsql
argument is emptyCheck List
Tests
Related changes