Skip to content

Commit

Permalink
*: fix wrong modification for introduced from #33818 (#33831)
Browse files Browse the repository at this point in the history
close #33814
  • Loading branch information
lcwangchao committed Apr 8, 2022
1 parent cff88d7 commit 38cb0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@ func (s *session) cachedPlanExec(ctx context.Context,
// IsPointGetWithPKOrUniqueKeyByAutoCommit
func (s *session) IsCachedExecOk(ctx context.Context, preparedStmt *plannercore.CachedPrepareStmt, isStaleness bool) (bool, error) {
prepared := preparedStmt.PreparedAst
if isStaleness {
if prepared.CachedPlan == nil || isStaleness {
return false, nil
}
// check auto commit
Expand Down

0 comments on commit 38cb0e3

Please sign in to comment.