Merge pull request #1 from xxjwxc/master

fix HashMap is out of order
This commit is contained in:
fyyang
2021-01-07 21:35:40 +08:00
committed by GitHub
2 changed files with 32 additions and 29 deletions

View File

@@ -62,9 +62,9 @@ func getTypeName(name string, isNull bool) string {
}
// Fuzzy Regular Matching.模糊正则匹配
for k, v := range cnf.TypeMysqlMatchMp {
if ok, _ := regexp.MatchString(k, name); ok {
return fixNullToPorint(v, isNull)
for _, l := range cnf.TypeMysqlMatchList {
if ok, _ := regexp.MatchString(l.Key, name); ok {
return fixNullToPorint(l.Value, isNull)
}
}