Skip to content

Commit

Permalink
7
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Oct 25, 2023
1 parent 84a5166 commit 4b9b56e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ public void prepare(MysqlCommand command) {
ctx.getState().reset();
executor = null;

for (StmtExecutor asynExecutor : asynQueryResultExecutor) {
asynExecutor.finalizeQuery();
}
asynQueryResultExecutor.clear();

if (command == null) {
ErrorReport.report(ErrorCode.ERR_UNKNOWN_COM_ERROR);
ctx.getState().setError(ErrorCode.ERR_UNKNOWN_COM_ERROR, "Unknown command(" + command.toString() + ")");
Expand Down Expand Up @@ -182,6 +177,11 @@ public Schema fetchArrowFlightSchema(int timeoutMs) {
@Override
public void close() throws Exception {
ctx.setCommand(MysqlCommand.COM_SLEEP);
// TODO support query profile
for (StmtExecutor asynExecutor : asynQueryResultExecutor) {
asynExecutor.finalizeQuery();
}
asynQueryResultExecutor.clear();
ConnectContext.remove();
}
}
Expand Down

0 comments on commit 4b9b56e

Please sign in to comment.