Skip to content

Commit

Permalink
packets: do not call function on nulled value
Browse files Browse the repository at this point in the history
  • Loading branch information
julienschmidt committed Oct 6, 2017
1 parent a8b7ed4 commit f2ca957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -1143,10 +1143,11 @@ func (rows *binaryRows) readRow(dest []driver.Value) error {
}
return io.EOF
}
mc := rows.mc
rows.mc = nil

// Error otherwise
return rows.mc.handleErrorPacket(data)
return mc.handleErrorPacket(data)
}

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

0 comments on commit f2ca957

Please sign in to comment.