1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Enhance the EXISTS-to-JOIN optimization so that it works on EXISTS subqueries

that do not have a WHERE clause, and so that it works on nested EXISTS
subqueries.

FossilOrigin-Name: c1d5295724f9cf7f49e0786d28016eff2d268a2b670f934d24c76787626089db
This commit is contained in:
drh
2025-07-05 23:33:21 +00:00
parent 45bc9b9f97
commit 8bc112e3e4
4 changed files with 24 additions and 16 deletions

View File

@ -193,7 +193,7 @@ do_subquery_test 3.7 1 {
4 4 4
}
do_subquery_test 3.8 1 {
do_subquery_test 3.8 0 {
SELECT * FROM y1 WHERE EXISTS ( SELECT a+1 FROM y2 )
} {
1 1 1