fix HashMap is out of order

fix HashMap is out of order
This commit is contained in:
xxj
2020-12-28 16:13:39 +08:00
parent acd9861d7f
commit a60ccdc695
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)
}
}