Skip to content

Unable to use time.Time on MySQL driver. #17

@bweston92

Description

@bweston92
type Test {
	Reference string    `db:"unique" column:"reference"`
	Starts    time.Time `column:"starts"`
	Ends      time.Time `column:"ends"`
}

The above stores fine but upon querying I get:

ERROR: sql: Scan error on column index 2: unsupported Scan, storing driver.Value type []uint8 into type *time.Time

Metadata

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