support dynamic preparedstatement.

This commit is contained in:
wenshao
2017-05-29 14:39:57 +08:00
parent 450f6bdd4b
commit 0ed43689cc
3 changed files with 26 additions and 3 deletions
@@ -288,7 +288,9 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement {
public void close() throws SQLException {
if (!this.closed) {
clearResultSet();
stmt.close();
if (stmt != null) {
stmt.close();
}
this.closed = true;
if (conn.getConnectionHolder() != null) {