Skip to content

Commit 603f233

Browse files
authored
Merge pull request #2113 from mateuszkowalke/master
Add comment for pgtype.Interval struct
2 parents b197994 + 4171f55 commit 603f233

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pgtype/doc.go

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ similar fashion to database/sql. The second is to use a pointer to a pointer.
5353
return err
5454
}
5555
56+
When using nullable pgtype types as parameters for queries, one has to remember
57+
to explicitly set their Valid field to true, otherwise the parameter's value will be NULL.
58+
5659
JSON Support
5760
5861
pgtype automatically marshals and unmarshals data from json and jsonb PostgreSQL types.

0 commit comments

Comments
 (0)