rel icon indicating copy to clipboard operation
rel copied to clipboard

Changeset panic when replacing *time.Time with nil

Open undeconstructed opened this issue 2 months ago • 0 comments

Forgive if I'm wrong, I'm slightly lost in pointers. I have a field type *time.Time, I load a record where that is set, create a changeset on it, change the field to nil, update, and hit a panic here: https://github.com/go-rel/rel/blob/e5555d0cb11d016ab4bcd74e8df478321d1956ea/changeset.go#L27.

I think that sql.NullTime works fine. And in my case I don't really need the changeset, so I would call this low-priority. Thanks.

undeconstructed avatar Oct 02 '25 14:10 undeconstructed