Fix postgres dialect UUID sqlType evaluation

This commit is contained in:
Bastien Dhiver 2017-08-11 23:07:22 +02:00
parent c3bb6aaa82
commit 56612b0ac8

View File

@ -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"
}
} }
} }
} }