Skip to content

Commit c5867d7

Browse files
authored
Merge pull request #1387 from kazuki43zoo/gh-1386-for-3.4.x
Backport gh-1386 to 3.4.x line
2 parents 431d240 + 2f1a43c commit c5867d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/apache/ibatis/executor/BaseExecutor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ protected abstract <E> Cursor<E> doQueryCursor(MappedStatement ms, Object parame
282282
protected void closeStatement(Statement statement) {
283283
if (statement != null) {
284284
try {
285-
if (!statement.isClosed()) {
286-
statement.close();
287-
}
285+
statement.close();
288286
} catch (SQLException e) {
289287
// ignore
290288
}

0 commit comments

Comments
 (0)