mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Do more aggressive optimization of the AND operator where one side or the
other is always false. FossilOrigin-Name: f9a7e179cbbeeab5e57bbf392bef89750215546b
This commit is contained in:
14
test/in.test
14
test/in.test
@ -258,17 +258,29 @@ do_test in-7.5 {
|
||||
SELECT a FROM t1 WHERE a IN (5) AND b NOT IN ();
|
||||
}
|
||||
} {5}
|
||||
do_test in-7.6 {
|
||||
do_test in-7.6.1 {
|
||||
execsql {
|
||||
SELECT a FROM ta WHERE a IN ();
|
||||
}
|
||||
} {}
|
||||
do_test in-7.6.2 {
|
||||
db status step
|
||||
} {0}
|
||||
do_test in-7.7 {
|
||||
execsql {
|
||||
SELECT a FROM ta WHERE a NOT IN ();
|
||||
}
|
||||
} {1 2 3 4 6 8 10}
|
||||
|
||||
do_test in-7.8.1 {
|
||||
execsql {
|
||||
SELECT * FROM ta LEFT JOIN tb ON (ta.b=tb.b) WHERE ta.a IN ();
|
||||
}
|
||||
} {}
|
||||
do_test in-7.8.2 {
|
||||
db status step
|
||||
} {0}
|
||||
|
||||
do_test in-8.1 {
|
||||
execsql {
|
||||
SELECT b FROM t1 WHERE a IN ('hello','there')
|
||||
|
Reference in New Issue
Block a user