We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f9287 commit 4a5269cCopy full SHA for 4a5269c
fields.go
@@ -128,7 +128,7 @@ var (
128
scanTypeInt64 = reflect.TypeOf(int64(0))
129
scanTypeNullFloat = reflect.TypeOf(sql.NullFloat64{})
130
scanTypeNullInt = reflect.TypeOf(sql.NullInt64{})
131
- scanTypeNullUInt = reflect.TypeOf(sql.Null[uint64]{})
+ scanTypeNullUint = reflect.TypeOf(sql.NullString{}) // reflect.TypeOf(sql.Null[uint64]{}) // support in go 1.22
132
scanTypeNullTime = reflect.TypeOf(sql.NullTime{})
133
scanTypeUint8 = reflect.TypeOf(uint8(0))
134
scanTypeUint16 = reflect.TypeOf(uint16(0))
@@ -187,7 +187,7 @@ func (mf *mysqlField) scanType() reflect.Type {
187
return scanTypeInt64
188
}
189
if mf.flags&flagUnsigned != 0 {
190
- return scanTypeNullUInt
+ return scanTypeNullUint
191
192
return scanTypeNullInt
193
0 commit comments