Skip to content

Commit

Permalink
Change processlist query to support ONLY_FULL_GROUP_BY sql_mode (#684)
Browse files Browse the repository at this point in the history
Otherwise "Error 1055: 'information_schema.processlist.HOST' isn't in GROUP BY" is raised.

Signed-off-by: René Scheibe <rene.scheibe@gmail.com>
  • Loading branch information
darxriggs authored Aug 29, 2024
1 parent 263b96d commit 4914f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/info_schema_processlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const infoSchemaProcesslistQuery = `
FROM information_schema.processlist
WHERE ID != connection_id()
AND TIME >= %d
GROUP BY user, SUBSTRING_INDEX(host, ':', 1), command, state
GROUP BY user, host, command, state
`

// Tunable flags.
Expand Down

0 comments on commit 4914f25

Please sign in to comment.