If a row in a database is null, then SQLair will return the zero value for the type. It does this by passing a pointer to the type to Rows.Scan and if that sets the pointer to nil it sets output to its zero value. Rows.Scan does support scanning into time.Time but for some reason, not *time.Time. This means it is impossible to use SQLair to scan directly into the time.Time type.
If a row in a database is null, then SQLair will return the zero value for the type. It does this by passing a pointer to the type to
Rows.Scan
and if that sets the pointer to nil it sets output to its zero value.Rows.Scan
does support scanning intotime.Time
but for some reason, not*time.Time
. This means it is impossible to use SQLair to scan directly into thetime.Time
type.