Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Nov 8, 2023
1 parent ab3d9a6 commit 169a22d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/expression/builtin_compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,6 @@ func allowCmpArgsRefining4PlanCache(ctx sessionctx.Context, args []Expression) (
if !isCon {
continue // not a constant
}
if con.DeferredExpr != nil {
continue
}

// case 1: year-expr <cmp> const
// refine `year < 12` to `year < 2012` to guarantee the correctness.
Expand Down

0 comments on commit 169a22d

Please sign in to comment.