mirror of https://github.com/go-gorm/gorm.git
Fix postgres dialect UUID sqlType evaluation (#1564)
This commit is contained in:
parent
750fd9030a
commit
981d5db663
|
@ -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…
Reference in New Issue