diff --git a/dialect_postgres.go b/dialect_postgres.go index 4d362919..75aef9ba 100644 --- a/dialect_postgres.go +++ b/dialect_postgres.go @@ -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" + } } } }