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 169a22d commit b9c65f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/expression/builtin_compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -1576,8 +1576,7 @@ func allowCmpArgsRefining4PlanCache(ctx sessionctx.Context, args []Expression) (
// 2. int-expr <cmp> string/float/double/decimal-const
// 3. datetime/timestamp column <cmp> int/float/double/decimal-const
for conIdx := 0; conIdx < 2; conIdx++ {
con, isCon := args[conIdx].(*Constant)
if !isCon {
if _, isCon := args[conIdx].(*Constant); !isCon {
continue // not a constant
}

Expand Down

0 comments on commit b9c65f3

Please sign in to comment.