Skip to content

Commit

Permalink
fix #394
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Oct 9, 2017
1 parent bb22fa3 commit 5fe58ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### 缺陷修正

1. [ISSUE #387](https://github.com/shardingjdbc/sharding-jdbc/issues/387) 当函数+列名中存在'`'防止关键字时处理出错
1. [ISSUE #394](https://github.com/shardingjdbc/sharding-jdbc/issues/394) 无法单独close statement

## 1.5.4.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public abstract class AbstractStatementAdapter extends AbstractUnsupportedOperat
@Override
public final void close() throws SQLException {
closed = true;
getRoutedStatements().clear();
Collection<SQLException> exceptions = new LinkedList<>();
for (Statement each : getRoutedStatements()) {
try {
Expand All @@ -55,6 +54,7 @@ public final void close() throws SQLException {
exceptions.add(ex);
}
}
getRoutedStatements().clear();
throwSQLExceptionIfNecessary(exceptions);
}

Expand Down

0 comments on commit 5fe58ca

Please sign in to comment.