diff --git a/pgtype/doc.go b/pgtype/doc.go index d56c1dc70..7687ea8fe 100644 --- a/pgtype/doc.go +++ b/pgtype/doc.go @@ -53,6 +53,9 @@ similar fashion to database/sql. The second is to use a pointer to a pointer. return err } +When using nullable pgtype types as parameters for queries, one has to remember +to explicitly set their Valid field to true, otherwise the parameter's value will be NULL. + JSON Support pgtype automatically marshals and unmarshals data from json and jsonb PostgreSQL types.