Fix postgres dialect UUID sqlType evaluation
This commit is contained in:
parent
c3bb6aaa82
commit
56612b0ac8
@ -67,8 +67,9 @@ func (s *postgres) DataTypeOf(field *StructField) string {
|
|||||||
default:
|
default:
|
||||||
if IsByteArrayOrSlice(dataValue) {
|
if IsByteArrayOrSlice(dataValue) {
|
||||||
sqlType = "bytea"
|
sqlType = "bytea"
|
||||||
} else if isUUID(dataValue) {
|
if isUUID(dataValue) {
|
||||||
sqlType = "uuid"
|
sqlType = "uuid"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user