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:
|
||||
if IsByteArrayOrSlice(dataValue) {
|
||||
sqlType = "bytea"
|
||||
} else if isUUID(dataValue) {
|
||||
sqlType = "uuid"
|
||||
if isUUID(dataValue) {
|
||||
sqlType = "uuid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user