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:
|
default:
|
||||||
if isByteArrayOrSlice(value) {
|
if isByteArrayOrSlice(value) {
|
||||||
if isUUID(value) {
|
|
||||||
return "uuid"
|
|
||||||
}
|
|
||||||
return "bytea"
|
return "bytea"
|
||||||
|
} else if isUUID(value) {
|
||||||
|
return "uuid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panic(fmt.Sprintf("invalid sql type %s (%s) for postgres", value.Type().Name(), value.Kind().String()))
|
panic(fmt.Sprintf("invalid sql type %s (%s) for postgres", value.Type().Name(), value.Kind().String()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user