forked from mirror/gorm
I was breaking another case
EncryptedPassword []byte `json:"-" sql:"encrypted_password;not null"`
This commit is contained in:
parent
67f88d977b
commit
b27ac1a996
|
@ -54,10 +54,9 @@ func (postgres) SqlTag(value reflect.Value, size int, autoIncrease bool) string
|
|||
}
|
||||
default:
|
||||
if isByteArrayOrSlice(value) {
|
||||
if isUUID(value) {
|
||||
return "uuid"
|
||||
}
|
||||
return "bytea"
|
||||
} else if isUUID(value) {
|
||||
return "uuid"
|
||||
}
|
||||
}
|
||||
panic(fmt.Sprintf("invalid sql type %s (%s) for postgres", value.Type().Name(), value.Kind().String()))
|
||||
|
|
Loading…
Reference in New Issue