Skip to content

Commit

Permalink
Add typed nil behavior change note to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Nov 4, 2022
1 parent 3967600 commit a968ce3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ The `pgtype` package has been significantly changed.
Previously, types had a `Status` field that could be `Undefined`, `Null`, or `Present`. This has been changed to a
`Valid` `bool` field to harmonize with how `database/sql` represents `NULL` and to make the zero value useable.

Previously, a type that implemented `driver.Valuer` would have the `Value` method called even on a nil pointer. All nils
whether typed or untyped now represent `NULL`.

### Codec and Value Split

Previously, the type system combined decoding and encoding values with the value types. e.g. Type `Int8` both handled
Expand Down

0 comments on commit a968ce3

Please sign in to comment.