diff --git a/postgres.go b/postgres.go index a6d98ae3..373588f1 100644 --- a/postgres.go +++ b/postgres.go @@ -54,10 +54,9 @@ func (postgres) SqlTag(value reflect.Value, size int, autoIncrease bool) string } default: if isByteArrayOrSlice(value) { - if isUUID(value) { - return "uuid" - } return "bytea" + } else if isUUID(value) { + return "uuid" } } panic(fmt.Sprintf("invalid sql type %s (%s) for postgres", value.Type().Name(), value.Kind().String()))