mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for Statement.clearParameter
This commit is contained in:
@@ -137,10 +137,12 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
|
||||
public void closePoolableStatement(DruidPooledPreparedStatement stmt) throws SQLException {
|
||||
PreparedStatement rawStatement = stmt.getRawPreparedStatement();
|
||||
|
||||
try {
|
||||
rawStatement.clearParameters();
|
||||
} catch (SQLException ex) {
|
||||
LOG.error("clear parameter error", ex);
|
||||
if (holder.isPoolPreparedStatements()) {
|
||||
try {
|
||||
rawStatement.clearParameters();
|
||||
} catch (SQLException ex) {
|
||||
LOG.error("clear parameter error", ex);
|
||||
}
|
||||
}
|
||||
|
||||
if (holder == null) {
|
||||
|
||||
Reference in New Issue
Block a user