Skip to content

Instantly share code, notes, and snippets.

@maksadbek
Created June 22, 2015 16:32
Show Gist options
  • Save maksadbek/21ef536ffab2abd6fc20 to your computer and use it in GitHub Desktop.
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
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