Skip to content

Commit 6368cf3

Browse files
authored
use sql.Null
1 parent fdd0987 commit 6368cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fields.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var (
128128
scanTypeInt64 = reflect.TypeOf(int64(0))
129129
scanTypeNullFloat = reflect.TypeOf(sql.NullFloat64{})
130130
scanTypeNullInt = reflect.TypeOf(sql.NullInt64{})
131-
scanTypeNullUint = reflect.TypeOf(sql.NullString{}) // reflect.TypeOf(sql.Null[uint64]{}) // support in go 1.22
131+
scanTypeNullUint = reflect.TypeOf(sql.Null[uint64]{})
132132
scanTypeNullTime = reflect.TypeOf(sql.NullTime{})
133133
scanTypeUint8 = reflect.TypeOf(uint8(0))
134134
scanTypeUint16 = reflect.TypeOf(uint16(0))

0 commit comments

Comments
 (0)