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
sqlc assumes parseTime=true is enabled or it fails with this cryptic error message. (It's easy now that I know that setting exists though.)
I don't suppose we can do a compile check for this, so the next best thing is an at-init check? Documenting this in an easy to find place would also help.
Relevant log output
sql: Scan error on column index 1, name "timestamp": unsupported Scan, storing driver.Value type []uint8 into type*time.Time
Database schema
CREATETABLEauthors (
id BIGSERIALPRIMARY KEY,
time DATETIME NOT NULL
);