Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 3.2.0
-
None
-
None
Description
Example:
public class CheckQueryIterator { public static void main(String... args) { String queryStr = "SELECT ?s { } GROUP BY ?s"; Query query = QueryFactory.create(queryStr); Model model = ModelFactory.createDefaultModel(); try(QueryExecution qe = QueryExecutionFactory.create(query, model)) { ResultSet rs = qe.execSelect(); // Do not "hasNext" //rs.hasNext(); } }
Key feature: not touching the "group", going straight to QueryExecution.close().
This does not cause any incorrect query results.