Always make sure the left-hand side of the IS NOT NULL operator is a
smiple column, not a general expression, before applying the IS NOT NULL query optimization. FossilOrigin-Name: 543f75a6abe3aa4f49df43e71a462702d40b3251
This commit is contained in:
@@ -209,6 +209,8 @@ foreach {testid where index rows} {
|
||||
502 {x IS NULL} {} 100
|
||||
503 {x=1} t1x 50
|
||||
504 {x IS NOT NULL} t1x 25
|
||||
505 {+x IS NOT NULL} {} 500
|
||||
506 {upper(x) IS NOT NULL} {} 500
|
||||
|
||||
} {
|
||||
# Verify that the expected index is used with the expected row count
|
||||
|
||||
Reference in New Issue
Block a user