Skip to content

v1.13.0 changed supported generic types for Option and driver.Valuer interface #50

Open
@dropwhile

Description

It looks like the change to mo.Option Value() [Driver.Valuer interface] supports fewer types than it used to, by now calling DefaultParameterConverter.ConvertValue.

I had some code that was using the output of Value to workaround issues with a validation library, but calling Value() on a mo.Option[[]int] type now fails for any slice types other than []byte.
ref: https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/database/sql/driver/types.go;l=286

I have a workaround in place, but dropping this here in case this was not intended, or to help anyone in the future trying to track this down.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions