Skip to content

Error while Scan (time.Time -> *sql.RawBytes) #8

@ilgooz

Description

@ilgooz
type User struct {
  Preferences *Preferences `sql:"-"`
  UpdatedAt time.Time
}

When I perform ScanAliased(&preferences) after ScanAliased(&user) I get this error right after ScanAliased(&preferences) performed:

sql: Scan error on column index 11: unsupported driver -> Scan pair: time.Time -> *sql.RawBytes

I've quickly changed this line as v = &v to avoid the issue but I'm not sure this is the correct way

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