We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44553d6 commit fb5a2a0Copy full SHA for fb5a2a0
fields.go
@@ -128,6 +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]{})
132
scanTypeNullTime = reflect.TypeOf(sql.NullTime{})
133
scanTypeUint8 = reflect.TypeOf(uint8(0))
134
scanTypeUint16 = reflect.TypeOf(uint16(0))
@@ -185,6 +186,9 @@ func (mf *mysqlField) scanType() reflect.Type {
185
186
}
187
return scanTypeInt64
188
189
+ if mf.flags&flagUnsigned != 0 {
190
+ return scanTypeNullUInt
191
+ }
192
return scanTypeNullInt
193
194
case fieldTypeFloat:
0 commit comments