Skip to content

Commit 9479b80

Browse files
authored
Update packets.go
1 parent f37f416 commit 9479b80

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

packets.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -827,17 +827,8 @@ func (rows *textRows) readRow(dest []driver.Value) error {
827827
dest[i] = buf
828828
}
829829

830-
case fieldTypeTiny, fieldTypeShort, fieldTypeInt24, fieldTypeYear:
831-
dest[i], err = strconv.ParseInt(string(buf), 10, 32)
832-
833-
case fieldTypeLong:
834-
if rows.rs.columns[i].flags&flagUnsigned != 0 {
835-
var d uint64
836-
d, err = strconv.ParseUint(string(buf), 10, 32)
837-
dest[i] = int64(d)
838-
} else {
839-
dest[i], err = strconv.ParseInt(string(buf), 10, 32)
840-
}
830+
case fieldTypeTiny, fieldTypeShort, fieldTypeInt24, fieldTypeYear, fieldTypeLong:
831+
dest[i], err = strconv.ParseInt(string(buf), 10, 64)
841832

842833
case fieldTypeLongLong:
843834
if rows.rs.columns[i].flags&flagUnsigned != 0 {

0 commit comments

Comments
 (0)