Skip to content

Commit

Permalink
Added UUID datatypes to flexinit
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 10, 2023
1 parent cf21a2a commit db3af8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/engine/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,16 @@ func (o *Object) setFlex(flexinit ...interface{}) {
continue
}
data = append(data, AttributeValueTime(v))
case uuid.UUID:
if ignoreblanks && v.IsNil() {
continue
}
data = append(data, AttributeValueGUID(v))
case *uuid.UUID:
if ignoreblanks && v.IsNil() {
continue
}
data = append(data, AttributeValueGUID(*v))
case *bool:
if v == nil {
continue
Expand Down

0 comments on commit db3af8e

Please sign in to comment.