Skip to content

Commit

Permalink
more on date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Crosby committed Feb 9, 2012
1 parent 6275894 commit 73a1111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handler.go
Expand Up @@ -345,15 +345,15 @@ func handleBinaryRow(p *packetRowBinary, c *Client, r *Result) error {
d.Month = p.data[pos+uint64(n)+2]
// Day 1 byte
d.Day = p.data[pos+uint64(n)+3]
if uint64(len(p.data)) >= pos+uint64(n)+4 {
if uint64(len(p.data)) > pos+uint64(n)+4 {
// Hour 1 byte
d.Hour = p.data[pos+uint64(n)+4]
}
if uint64(len(p.data)) >= pos+uint64(n)+5 {
if uint64(len(p.data)) > pos+uint64(n)+5 {
// Minute 1 byte
d.Minute = p.data[pos+uint64(n)+5]
}
if uint64(len(p.data)) >= pos+uint64(n)+6 {
if uint64(len(p.data)) > pos+uint64(n)+6 {
// Second 1 byte
d.Second = p.data[pos+uint64(n)+6]
}
Expand Down

0 comments on commit 73a1111

Please sign in to comment.