From c39bd6eb6ce84d13b38a535165e5d54257c6ef3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 10 Dec 2024 09:09:28 +0100 Subject: [PATCH] Include MySQL 9.x in versions that don't need --comments (#2469) --- components/playground/playground.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index d87cc89aef..569b3b55a4 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -1669,7 +1669,12 @@ func mysqlCommand() (cmd string) { } vMaj, vMin, _, err := parseMysqlVersion(string(mysqlVerOutput)) if err == nil { - if vMaj == 8 && vMin >= 1 { // 8.1.0 and newer + // MySQL Client 8.1.0 and newer + if vMaj == 8 && vMin >= 1 { + return "mysql" + } + // MySQL Client 9.x.x. Note that 10.x is likely to be MariaDB, so not using >= here. + if vMaj == 9 { return "mysql" } }