File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1014,16 +1014,15 @@ func (rows *mysqlRows) readBinaryRow(dest []driver.Value) (err error) {
1014
1014
}
1015
1015
}
1016
1016
1017
- var sign byte
1017
+ var sign string
1018
1018
if data [pos ] == 1 {
1019
- sign = byte ( '-' )
1019
+ sign = "-"
1020
1020
}
1021
1021
1022
1022
switch num {
1023
1023
case 8 :
1024
1024
dest [i ] = []byte (fmt .Sprintf (
1025
- "%c%02d:%02d:%02d" ,
1026
- sign ,
1025
+ sign + "%02d:%02d:%02d" ,
1027
1026
uint16 (data [pos + 1 ])* 24 + uint16 (data [pos + 5 ]),
1028
1027
data [pos + 6 ],
1029
1028
data [pos + 7 ],
@@ -1032,8 +1031,7 @@ func (rows *mysqlRows) readBinaryRow(dest []driver.Value) (err error) {
1032
1031
continue
1033
1032
case 12 :
1034
1033
dest [i ] = []byte (fmt .Sprintf (
1035
- "%c%02d:%02d:%02d.%06d" ,
1036
- sign ,
1034
+ sign + "%02d:%02d:%02d.%06d" ,
1037
1035
uint16 (data [pos + 1 ])* 24 + uint16 (data [pos + 5 ]),
1038
1036
data [pos + 6 ],
1039
1037
data [pos + 7 ],
You can’t perform that action at this time.
0 commit comments