File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/com/code/advancedsql/query Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ public ResultSet fetchAll() throws SQLException {
5353 public List <Map <String , Object >> fetchAllAsList () throws SQLException {
5454 ResultSet resultSet = this .fetchAll ();
5555
56- return ISQL .convertResultSetToList (resultSet );
56+ List <Map <String , Object >> list = ISQL .convertResultSetToList (resultSet );
57+
58+ prepare .close ();
59+
60+ return list ;
5761 }
5862
5963 /**
Original file line number Diff line number Diff line change @@ -46,11 +46,7 @@ public ResultSet executeQuery() throws SQLException {
4646
4747 ISQL .setStatementParameters (this .prepare , this .execute );
4848
49- ResultSet result = prepare .executeQuery ();
50-
51- prepare .close ();
52-
53- return result ;
49+ return prepare .executeQuery ();
5450 }
5551
5652 public int executeUpdate () throws SQLException {
You can’t perform that action at this time.
0 commit comments