File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ var (
128
128
scanTypeInt64 = reflect .TypeOf (int64 (0 ))
129
129
scanTypeNullFloat = reflect .TypeOf (sql.NullFloat64 {})
130
130
scanTypeNullInt = reflect .TypeOf (sql.NullInt64 {})
131
- scanTypeNullUInt = reflect .TypeOf (sql.Null [uint64 ]{})
131
+ scanTypeNullUint = reflect .TypeOf (sql.NullString {}) // reflect.TypeOf(sql. Null[uint64]{}) // support in go 1.22
132
132
scanTypeNullTime = reflect .TypeOf (sql.NullTime {})
133
133
scanTypeUint8 = reflect .TypeOf (uint8 (0 ))
134
134
scanTypeUint16 = reflect .TypeOf (uint16 (0 ))
@@ -187,7 +187,7 @@ func (mf *mysqlField) scanType() reflect.Type {
187
187
return scanTypeInt64
188
188
}
189
189
if mf .flags & flagUnsigned != 0 {
190
- return scanTypeNullUInt
190
+ return scanTypeNullUint
191
191
}
192
192
return scanTypeNullInt
193
193
You can’t perform that action at this time.
0 commit comments