Skip to content

Commit fae512f

Browse files
packets: do not call function on nulled value (#678)
1 parent eb92a8d commit fae512f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packets.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,11 @@ func (rows *binaryRows) readRow(dest []driver.Value) error {
11431143
}
11441144
return io.EOF
11451145
}
1146+
mc := rows.mc
11461147
rows.mc = nil
11471148

11481149
// Error otherwise
1149-
return rows.mc.handleErrorPacket(data)
1150+
return mc.handleErrorPacket(data)
11501151
}
11511152

11521153
// NULL-bitmap, [(column-count + 7 + 2) / 8 bytes]

0 commit comments

Comments
 (0)