Commit 5fe58cab authored by terrymanu's avatar terrymanu
Browse files

fix #394

parent bb22fa35
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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 {
@@ -55,6 +54,7 @@ public abstract class AbstractStatementAdapter extends AbstractUnsupportedOperat
                exceptions.add(ex);
            }
        }
        getRoutedStatements().clear();
        throwSQLExceptionIfNecessary(exceptions);
    }