Skip to content

Commit

Permalink
Fix missing first row when columns are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
vbatoufflet committed Sep 15, 2015
1 parent dbb6577 commit 8b7c652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (q *Query) parse(data []byte) ([]Record, error) {
// Unmarshal received data
if err := json.Unmarshal(data, &rows); err != nil {
return nil, err
} else if len(rows) < 2 {
} else if len(q.columns) == 0 && len(rows) < 2 || len(q.columns) > 0 && len(rows) < 1 {
return records, nil
}

Expand Down

0 comments on commit 8b7c652

Please sign in to comment.