mirror of https://github.com/jackc/pgx.git
Add additional info for nullable pgtype types
Additional information warns about using nullable types being used as parameters to query with Valid set to false.pull/2113/head
parent
4f7e19d67d
commit
4171f554d4
|
@ -53,6 +53,9 @@ similar fashion to database/sql. The second is to use a pointer to a pointer.
|
||||||
return err
|
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
|
JSON Support
|
||||||
|
|
||||||
pgtype automatically marshals and unmarshals data from json and jsonb PostgreSQL types.
|
pgtype automatically marshals and unmarshals data from json and jsonb PostgreSQL types.
|
||||||
|
|
Loading…
Reference in New Issue