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 {
53
53
public List <Map <String , Object >> fetchAllAsList () throws SQLException {
54
54
ResultSet resultSet = this .fetchAll ();
55
55
56
- return ISQL .convertResultSetToList (resultSet );
56
+ List <Map <String , Object >> list = ISQL .convertResultSetToList (resultSet );
57
+
58
+ prepare .close ();
59
+
60
+ return list ;
57
61
}
58
62
59
63
/**
Original file line number Diff line number Diff line change @@ -46,11 +46,7 @@ public ResultSet executeQuery() throws SQLException {
46
46
47
47
ISQL .setStatementParameters (this .prepare , this .execute );
48
48
49
- ResultSet result = prepare .executeQuery ();
50
-
51
- prepare .close ();
52
-
53
- return result ;
49
+ return prepare .executeQuery ();
54
50
}
55
51
56
52
public int executeUpdate () throws SQLException {
You can’t perform that action at this time.
0 commit comments