mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for duplicate getUpdateCount
This commit is contained in:
@@ -85,6 +85,7 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
|
||||
|
||||
@Override
|
||||
public boolean execute() throws SQLException {
|
||||
updateCount = null;
|
||||
lastExecuteType = StatementExecuteType.Execute;
|
||||
firstResultSet = createChain().preparedStatement_execute(this);
|
||||
return firstResultSet;
|
||||
@@ -92,6 +93,7 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
|
||||
|
||||
@Override
|
||||
public ResultSet executeQuery() throws SQLException {
|
||||
updateCount = null;
|
||||
lastExecuteType = StatementExecuteType.ExecuteQuery;
|
||||
return createChain().preparedStatement_executeQuery(this);
|
||||
}
|
||||
@@ -99,7 +101,8 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
|
||||
@Override
|
||||
public int executeUpdate() throws SQLException {
|
||||
lastExecuteType = StatementExecuteType.ExecuteUpdate;
|
||||
return createChain().preparedStatement_executeUpdate(this);
|
||||
updateCount = createChain().preparedStatement_executeUpdate(this);
|
||||
return updateCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user