Skip to content

Commit 8800351

Browse files
committed
fixes #1386 Revert a154e54 . Some users are using VERY old drivers.
1 parent 8e7b38a commit 8800351

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)