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:
drh
2011-04-08 21:35:26 +00:00
parent 1c152101ca
commit ea6dc4458b
4 changed files with 15 additions and 10 deletions
+2
View File
@@ -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