We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb0319 commit 5fdf515Copy full SHA for 5fdf515
builder/common_builder/mysql.go
@@ -16,6 +16,7 @@
16
package common
17
18
import (
19
+ "regexp"
20
"strconv"
21
"strings"
22
@@ -65,6 +66,14 @@ func (b *CommonBuilder) getMySQLFeature() (*model.MySQLFeature, error) {
65
66
continue
67
}
68
} else {
69
+ pattern := "enterprise"
70
+ regex := regexp.MustCompile(pattern)
71
+ match := regex.FindString(strings.ToLower(instance.Version))
72
+
73
+ if match != "" {
74
+ instance.Edition = model.MySQLEditionEnterprise
75
+ }
76
77
instance, errInstance = b.fetcher.GetMySQLOldInstance(conf)
78
if errInstance != nil {
79
b.log.Errorf("Can't get MySQL old instance: %s", conf.Host)
0 commit comments