Skip to content

Commit

Permalink
planner: remove useless part for the preparedStmtExec (#37293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reminiscent authored Aug 23, 2022
1 parent fe40d3c commit 6206b95
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2388,12 +2388,6 @@ func (s *session) preparedStmtExec(ctx context.Context, execStmt *ast.ExecuteStm
sessionExecuteCompileDurationGeneral.Observe(time.Since(s.sessionVars.StartTime).Seconds())
logGeneralQuery(stmt, s, true)

if stmt.PsStmt != nil { // point plan short path
resultSet, err := stmt.PointGet(ctx)
s.txn.changeToInvalid()
return resultSet, err
}

var recordSet sqlexec.RecordSet

if stmt.PsStmt != nil { // point plan short path
Expand Down

0 comments on commit 6206b95

Please sign in to comment.