Skip to content

Commit f5e3d74

Browse files
authored
fix: close when query finish (#31)
1 parent ae28e82 commit f5e3d74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rows.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ func (r *nextRows) Columns() []string {
6262
}
6363

6464
func (r *nextRows) Close() error {
65-
// FIXME: should check & call final here
65+
if len(r.respData.NextURI) != 0 {
66+
_, err := r.dc.rest.QueryPage(r.respData.Id, r.respData.NextURI)
67+
if err != nil {
68+
return err
69+
}
70+
}
6671
r.dc.cancel = nil
6772
return nil
6873
}

0 commit comments

Comments
 (0)