Skip to content

Commit

Permalink
use sql.Null
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Nov 11, 2024
1 parent fdd0987 commit 6368cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ var (
scanTypeInt64 = reflect.TypeOf(int64(0))
scanTypeNullFloat = reflect.TypeOf(sql.NullFloat64{})
scanTypeNullInt = reflect.TypeOf(sql.NullInt64{})
scanTypeNullUint = reflect.TypeOf(sql.NullString{}) // reflect.TypeOf(sql.Null[uint64]{}) // support in go 1.22
scanTypeNullUint = reflect.TypeOf(sql.Null[uint64]{})

Check failure on line 131 in fields.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 1.21, 9.0)

undefined: sql.Null
scanTypeNullTime = reflect.TypeOf(sql.NullTime{})
scanTypeUint8 = reflect.TypeOf(uint8(0))
scanTypeUint16 = reflect.TypeOf(uint16(0))
Expand Down

0 comments on commit 6368cf3

Please sign in to comment.