Let's s say I have struct with a field like:
FinishedAt sql.NullTime `json:"finished_at"`
var out models.Job
err := client.QueryRow(ctx, updateQuery,
&job.FinishedAt,
).Scan(
&out.FinishedAt,
)
Above I use "github.com/jackc/pgx/v4"
to work with PG.
There is no error during the update but the field is set to null
after the request.
Using &job.FinishedAt.Time
as an argument works appropriately but I want to understand why the sql.Nulltime
type doesn't work.
Is that just related to how the library works?