Skip to content

Commit

Permalink
Add todo for heldByConnection (apache#28163)
Browse files Browse the repository at this point in the history
* Add todo for heldByConnection

* Add todo for heldByConnection
  • Loading branch information
strongduanmu authored Aug 18, 2023
1 parent 87cefce commit 647be3c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void disconnect(final String processId) {
public void executeSQL(final ExecutionGroupContext<? extends SQLExecutionUnit> executionGroupContext, final QueryContext queryContext) {
if (isMySQLDDLOrDMLStatement(queryContext.getSqlStatementContext().getSqlStatement())) {
String processId = executionGroupContext.getReportContext().getProcessId();
// TODO remove heldByConnection when jdbc connection support generate processId and call connect and disconnect
boolean heldByConnection = null != ProcessRegistry.getInstance().get(processId) && ProcessRegistry.getInstance().get(processId).isHeldByConnection();
ProcessIdContext.set(processId);
ProcessRegistry.getInstance().add(new Process(queryContext.getSql(), executionGroupContext, heldByConnection));
Expand Down

0 comments on commit 647be3c

Please sign in to comment.