Skip to content
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

infoschema/slow_query: add host column in slow_query table. #10693

Merged
merged 9 commits into from
Jun 4, 2019
Prev Previous commit
Next Next commit
Update infoschema/slow_log.go
Co-Authored-By: Zhang Jian <zjsariel@gmail.com>
  • Loading branch information
crazycs520 and zz-jason authored Jun 4, 2019
commit 6aa6364d64db9ed437e893c98ccd0d2ae196ef08
2 changes: 1 addition & 1 deletion infoschema/slow_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (st *slowQueryTuple) setFieldValue(tz *time.Location, field, value string)
if len(field) > 0 {
st.user = fields[0]
}
if len(field) > 2 {
if len(field) > 1 {
st.ip = fields[1]
}
case variable.SlowLogConnIDStr:
Expand Down