Thanks to visit codestin.com
Credit goes to github.com

Skip to content

database/sql support #4

@deitrix

Description

@deitrix

When using the date.Date type with the database/sql package, I get errors like error: scanning database row: sql: Scan error on column index 3: unsupported Scan, storing driver.Value type time.Time into type *date.Date or Unable to encode value 2019-01-02

This can be easily solved by implementing both the driver.Valuer and sql.Scanner interfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions