Skip to content

Commit

Permalink
PMM-12375 choose the dabase first (mysql)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Aug 30, 2023
1 parent 9d1ebec commit 7348e67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/connectionchecker/connection_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ func (cc *ConnectionChecker) checkProxySQLConnection(ctx context.Context, dsn st
}

var version string
if err := db.QueryRowContext(ctx, "SELECT /* agent='connectionchecker' */ variable_value from global_variables where variable_name = 'admin-version'").Scan(&version); err != nil {
if err := db.QueryRowContext(

Check failure on line 293 in agent/connectionchecker/connection_checker.go

View workflow job for this annotation

GitHub Actions / Checks

arg list parens: align `)` to a same line with last argument
ctx,
"USE mysql; SELECT /* agent='connectionchecker' */ variable_value from global_variables where variable_name = 'admin-version'",
).Scan(&version); err != nil {
res.Error = err.Error()
return &res
}
Expand Down

0 comments on commit 7348e67

Please sign in to comment.