-
Notifications
You must be signed in to change notification settings - Fork 2.3k
unsupported driver -> Scan pair: <nil> -> *time.Time #59
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
Comments
So are these fields |
It's a |
Yes it's NULL. As for not being able handle this kind of renders the time.Time support useless? Unless there is some workaround that does indeed use the recently added support for time.Time as oppose to manual string conversion. |
You could make the timestamp non-null in the table and use a "marker time". It could even be faster that way. |
I'll add a |
Just for reference: |
Thanks for that bit of info.. but I really am not sure how to implement this so I will just wait for an official fix to this repo and in the meantime will make the mysql field as non-NULL. This defaults to 0000-00-00 00:00:00 |
That was intended as a reference for whoever implements NullTime (probably Julien), not for users of the driver 😀 . |
*Juli_e_n |
Your issue would be...? (thank the Octocat for the edit function...) |
Is this being worked on or... am i just being dumb? My database has empty datetime fields.. otherwise the package works fine.
The text was updated successfully, but these errors were encountered: