We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sharding-jdbc-core version-1.5.4.1 AbstractStatementAdapter方法实现中逐个close RoutedStatements集合前,先对集合做了clear操作,会导致RoutedStatements集合中的各个Statement的close方法执行不到。
@Override public final void close() throws SQLException { closed = true; getRoutedStatements().clear(); Collection<SQLException> exceptions = new LinkedList<>(); for (Statement each : getRoutedStatements()) { try { each.close(); } catch (final SQLException ex) { exceptions.add(ex); } } throwSQLExceptionIfNecessary(exceptions); }
public final void close() throws SQLException { closed = true; Collection<SQLException> exceptions = new LinkedList<>(); for (Statement each : getRoutedStatements()) { try { each.close(); } catch (final SQLException ex) { exceptions.add(ex); } } getRoutedStatements().clear(); throwSQLExceptionIfNecessary(exceptions); }
The text was updated successfully, but these errors were encountered:
fixed at 2.0.0.m1
Sorry, something went wrong.
fix #394
5fe58ca
No branches or pull requests
sharding-jdbc-core version-1.5.4.1
AbstractStatementAdapter方法实现中逐个close RoutedStatements集合前,先对集合做了clear操作,会导致RoutedStatements集合中的各个Statement的close方法执行不到。
目前的代码
可以修改为:
The text was updated successfully, but these errors were encountered: