Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database/sql support #4

Open
deitrix opened this issue Jul 30, 2018 · 0 comments
Open

database/sql support #4

deitrix opened this issue Jul 30, 2018 · 0 comments

Comments

@deitrix
Copy link

deitrix commented Jul 30, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant