This commit is contained in:
xxjwxc
2022-06-22 23:15:41 +08:00
2 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,13 @@ func getTypeName(name string, isNull bool) string {
return fixNullToPorint(v, isNull)
}
// Fuzzy Regular Matching.模糊正则匹配自定义类型
for selfKey, selfVal := range selfDefineTypeMqlDicMap {
if ok, _ := regexp.MatchString(selfKey, name); ok {
return fixNullToPorint(selfVal, isNull)
}
}
// Precise matching first.先精确匹配
if v, ok := cnf.TypeMysqlDicMp[name]; ok {
return fixNullToPorint(v, isNull)