diff options
-rw-r--r-- | dbstore/dbstore.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbstore/dbstore.go b/dbstore/dbstore.go index 7f22f3b..0ab6fcf 100644 --- a/dbstore/dbstore.go +++ b/dbstore/dbstore.go @@ -196,6 +196,10 @@ func (me DbStore) CpeSearch( } // close rows + // FIXME: is this correct? i am following the example from the + // database/sql documentation, but it is messy and it seems + // counterintuitive to close the row set and then do an additional + // test for iteration errors... if err = rows.Close(); err != nil { return r, err } |