MCPcopy Create free account
hub / github.com/francoispqt/gojay / DecodeSQLNullFloat64

Method DecodeSQLNullFloat64

decode_sqlnull.go:42–47  ·  view source on GitHub ↗

DecodeSQLNullFloat64 decodes a sql.NullString with the given format

(v *sql.NullFloat64)

Source from the content-addressed store, hash-verified

40
41// DecodeSQLNullFloat64 decodes a sql.NullString with the given format
42func (dec *Decoder) DecodeSQLNullFloat64(v *sql.NullFloat64) error {
43 if dec.isPooled == 1 {
44 panic(InvalidUsagePooledDecoderError("Invalid usage of pooled decoder"))
45 }
46 return dec.decodeSQLNullFloat64(v)
47}
48
49func (dec *Decoder) decodeSQLNullFloat64(v *sql.NullFloat64) error {
50 var i float64

Callers 1

TestDecodeSQLNullFloat64Function · 0.95

Calls 2

decodeSQLNullFloat64Method · 0.95

Tested by 1

TestDecodeSQLNullFloat64Function · 0.76