Better compatibility for complex sql type

This commit is contained in:
Jinzhu 2015-10-01 08:06:08 +08:00
parent eeb9ba2250
commit 8a2b73723d
1 changed files with 2 additions and 2 deletions

View File

@ -461,8 +461,8 @@ func parseTagSetting(str string) map[string]string {
for _, value := range tags {
v := strings.Split(value, ":")
k := strings.TrimSpace(strings.ToUpper(v[0]))
if len(v) == 2 {
setting[k] = v[1]
if len(v) >= 2 {
setting[k] = strings.Join(v[1:], ":")
} else {
setting[k] = k
}