Created
June 22, 2015 16:32
-
-
Save maksadbek/21ef536ffab2abd6fc20 to your computer and use it in GitHub Desktop.
Golang Mysql: some values will be 0, if previes null fields are not mapped to sql.Null typed variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some field on the sql rows scan can be always equal to null or 0 or "" if it is string, due to previes fields that are not mapped to sql NULLABLE types. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment