mirror of https://github.com/go-gorm/gorm.git
Better compatibility for complex sql type
This commit is contained in:
parent
eeb9ba2250
commit
8a2b73723d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue