Fix postgres dialect UUID sqlType evaluation
This commit is contained in:
parent
c3bb6aaa82
commit
56612b0ac8
@ -67,11 +67,12 @@ func (s *postgres) DataTypeOf(field *StructField) string {
|
||||
default:
|
||||
if IsByteArrayOrSlice(dataValue) {
|
||||
sqlType = "bytea"
|
||||
} else if isUUID(dataValue) {
|
||||
if isUUID(dataValue) {
|
||||
sqlType = "uuid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if sqlType == "" {
|
||||
panic(fmt.Sprintf("invalid sql type %s (%s) for postgres", dataValue.Type().Name(), dataValue.Kind().String()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user