Skip to content

Changeset panic when replacing *time.Time with nil #391

Description

@undeconstructed

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:

return !ot.Equal(new.(time.Time))
.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions