Skip to content

Commit b993d2f

Browse files
committed
fix: library updated.
1 parent eb924be commit b993d2f

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/main/java/com/code/advancedsql/ISQL.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ static List<Map<String, Object>> convertResultSetToList(ResultSet resultSet) thr
5858
list.add(row);
5959
}
6060

61-
resultSet.close();
62-
6361
return list;
6462
}
6563

src/main/java/com/code/advancedsql/query/Query.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ public Boolean executeStatement() throws SQLException {
3434

3535
ISQL.setStatementParameters(this.prepare, this.execute);
3636

37-
boolean execute = prepare.execute();
38-
39-
prepare.close();
40-
41-
return execute;
37+
return prepare.execute();
4238
}
4339

4440
public ResultSet executeQuery() throws SQLException {
@@ -54,11 +50,7 @@ public int executeUpdate() throws SQLException {
5450

5551
ISQL.setStatementParameters(this.prepare, this.execute);
5652

57-
int update = prepare.executeUpdate();
58-
59-
prepare.close();
60-
61-
return update;
53+
return prepare.executeUpdate();
6254
}
6355

6456
public abstract String toQuery();

0 commit comments

Comments
 (0)