Skip to content

Commit

Permalink
jdbc ExecuteStatement should set setCurrentOperationLog
Browse files Browse the repository at this point in the history
  • Loading branch information
lsm1 committed Feb 20, 2025
1 parent 0f4906d commit 4924266
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ class ExecuteStatement(

@volatile private var jdbcStatement: Statement = _

override protected def beforeRun(): Unit = {
OperationLog.setCurrentOperationLog(operationLog)
setState(OperationState.PENDING)
setHasResultSet(true)
}

override protected def afterRun(): Unit = {
OperationLog.removeCurrentOperationLog()
}

override protected def runInternal(): Unit = {
addTimeoutMonitor(queryTimeout)
if (shouldRunAsync) {
Expand Down

0 comments on commit 4924266

Please sign in to comment.