Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHiltl committed Sep 9, 2024
1 parent a38ef04 commit 670f9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apitypes/null.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (n *NullString) Scan(value interface{}) error {
func (n NullString) Value() (driver.Value, error) {
ns := sql.NullString{
String: n.String(),
Valid: n.IsValid(),
Valid: n.IsValid(), // this way we also store zero values as NULL in db
}
return ns.Value()
}

0 comments on commit 670f9d8

Please sign in to comment.