1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a segfault that could occur when optimizing a NOT NULL constraint against an IPK column of a sub-query.

FossilOrigin-Name: e4d1970ef17b2330f78c750d71d625c2997f79ed1445d0351ec32b482485a954
This commit is contained in:
dan
2021-02-26 21:39:34 +00:00
parent eca6d60bfa
commit 15de3ce9ab
4 changed files with 19 additions and 9 deletions

View File

@ -86,6 +86,16 @@ do_vmstep_test 1.5.2 {
)
} +100000 {1000}
#-------------------------------------------------------------------------
reset_db
do_execsql_test 2.0 {
CREATE TABLE T1(a INTEGER PRIMARY KEY, b);
CREATE TABLE T3(k, v);
}
do_execsql_test 2.1 {
SELECT * FROM (SELECT a, b FROM t1) LEFT JOIN t3 ON a IS NULL;
}
finish_test