mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-31 23:14:21 +01:00
Minimal regression test for 2949
This commit is contained in:
@@ -310,4 +310,12 @@ do_execsql_test_on_specific_db {:memory:} min-null-regression-test {
|
||||
insert into t values (1,1),(2,2);
|
||||
insert into u values (1,1),(3,3);
|
||||
select count(u.x) from t left join u using(y);
|
||||
} {1}
|
||||
} {1}
|
||||
|
||||
# regression test for issue 2949: consuming WHERE terms not originating from the LEFT JOIN
|
||||
do_execsql_test_on_specific_db {:memory:} left-join-seek-key-regression-test {
|
||||
CREATE TABLE t (x INTEGER PRIMARY KEY);
|
||||
CREATE TABLE u (x INTEGER PRIMARY KEY);
|
||||
INSERT INTO t VALUES (1);
|
||||
SELECT * FROM t LEFT JOIN u ON false WHERE u.x = 1;
|
||||
} {}
|
||||
Reference in New Issue
Block a user