You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When using the
date.Date
type with thedatabase/sql
package, I get errors likeerror: scanning database row: sql: Scan error on column index 3: unsupported Scan, storing driver.Value type time.Time into type *date.Date
orUnable to encode value 2019-01-02
This can be easily solved by implementing both the
driver.Valuer
andsql.Scanner
interfaces.The text was updated successfully, but these errors were encountered: