You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Opportunity struct {
ID *int `db:"OpportunityId,omitempty"`
GlobalOpportunityID *uuid.UUID `db:"GlobalOpportunityId,omitempty"`
}
I am using a this struct and when I call database actions I'm running into golang/go#8415 because go is calling Value() even though the pointer is nil. This is something they appear to be fixing in a later version, but their suggestion is to put a Valuer on *UUID instead of UUID. I changed the sql.goValue() method in my vendor folder to use a pointer and the issue went away.
Does this create any problems that I'm missing?
The text was updated successfully, but these errors were encountered:
I am using a this struct and when I call database actions I'm running into golang/go#8415 because go is calling
Value()
even though the pointer is nil. This is something they appear to be fixing in a later version, but their suggestion is to put a Valuer on *UUID instead of UUID. I changed thesql.go
Value()
method in my vendor folder to use a pointer and the issue went away.Does this create any problems that I'm missing?
The text was updated successfully, but these errors were encountered: