Extra test cases for outer joins.
FossilOrigin-Name: c7505765280fb27ec2c8c4da6f87229a4078e3a4a27525226b6bf55864caa04b
This commit is contained in:
parent
c18fc6134e
commit
93c4087ffe
17
manifest
17
manifest
@ -1,5 +1,5 @@
|
||||
C Do\snot\sallow\sa\sWHERE\sclause\sconstraint\sto\sbe\sused\sto\sdrive\san\sindex\sfor\nthe\sright\soperand\sof\sa\sRIGHT\sJOIN,\ssince\sthis\scan\scause\sproblem\sif\sthe\nconstraint\simplies\sa\snot-NULL\svalue\sfor\sone\sof\sthe\scolumns\sfor\sthe\sleft\noperand\sof\sthe\ssame\sjoin.\s\sSee\n[forum:/forumpost/206d99a16dd9212f|forum\spost\s206d99a16dd9212f].
|
||||
D 2022-06-06T15:27:42.276
|
||||
C Extra\stest\scases\sfor\souter\sjoins.
|
||||
D 2022-06-06T21:08:27.912
|
||||
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
||||
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
||||
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
|
||||
@ -1166,7 +1166,7 @@ F test/join4.test 1a352e4e267114444c29266ce79e941af5885916
|
||||
F test/join5.test d22b6cba8fb59ab3f1c82701434c360705eb12d4ce200c449f37b018fc47681a
|
||||
F test/join6.test f809c025fa253f9e150c0e9afd4cef8813257bceeb6f46e04041228c9403cc2c
|
||||
F test/join7.test 2268dcbb54b724391dda3748ea95c60d960607ffeed67885675998e7117697f6
|
||||
F test/join8.test 037d271ace8297b3c3814ade8964053553b84f07271497c128a9861c5dde681d
|
||||
F test/join8.test 4825d770bf392aad57c4bfacd0b89c6412a3ab0ed658f0ff7209d7f6e1d9eb0c
|
||||
F test/join9.test 9056ddd3b0c0f4f9d658f4521038d9a37dc23ead8ca9a505d0b0db2b6a471e05
|
||||
F test/joinA.test 7eab225dc1c1ab258a5e62513a4ed7cabbd3db971d59d5d92f4fb6fa14c12f6a
|
||||
F test/joinB.test 1b2ba3fc8568b49411787fccbf540570c148e9b6a53a30f80691cb6268098ded
|
||||
@ -1975,8 +1975,11 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||
P 4b50a55165f4603674a250df89cfc5ac1fef8aabaf433df8400df14d53bfbbe0
|
||||
R 36fe1e3adae6d605b2e8ea991b2037d0
|
||||
U drh
|
||||
Z 423aad7ac6c7bb7244bb6ead300ddf34
|
||||
P 4a31b7942a15c9c4363477365784d6d4ac5b1bbe8ff8aeaf2dd3d6532bf8bc96
|
||||
R 898330edf4a8d997653c5dd1a4fb4585
|
||||
T *branch * outer-join-tests
|
||||
T *sym-outer-join-tests *
|
||||
T -sym-trunk *
|
||||
U dan
|
||||
Z 7fd73dc63da28e4103b7c450b99067c6
|
||||
# Remove this line to create a well-formed Fossil manifest.
|
||||
|
@ -1 +1 @@
|
||||
4a31b7942a15c9c4363477365784d6d4ac5b1bbe8ff8aeaf2dd3d6532bf8bc96
|
||||
c7505765280fb27ec2c8c4da6f87229a4078e3a4a27525226b6bf55864caa04b
|
@ -587,4 +587,43 @@ do_execsql_test join8-18010 {
|
||||
SELECT *, x NOTNULL, (x NOTNULL)=a FROM t2 RIGHT JOIN t1 ON true WHERE (x NOTNULL)=a;
|
||||
} {}
|
||||
|
||||
do_execsql_test join8-18020 {
|
||||
CREATE TABLE t3(z);
|
||||
INSERT INTO t3 VALUES('t3value');
|
||||
SELECT *, x NOTNULL, (x NOTNULL)=a FROM t2 RIGHT JOIN t1 ON true INNER JOIN t3 ON (x NOTNULL)=a;
|
||||
} {}
|
||||
|
||||
ifcapable rtree {
|
||||
do_execsql_test join8-18030 {
|
||||
CREATE VIRTUAL TABLE rtree1 USING rtree(a, x1, x2);
|
||||
INSERT INTO rtree1 VALUES(0, 0, 0);
|
||||
}
|
||||
do_execsql_test join8-18040 {
|
||||
SELECT *, x NOTNULL, (x NOTNULL)=a FROM t2
|
||||
RIGHT JOIN rtree1 ON true INNER JOIN t3 ON (x NOTNULL)=+a;
|
||||
} {}
|
||||
do_execsql_test join8-18050 {
|
||||
SELECT *, x NOTNULL, (x NOTNULL)=a FROM t2
|
||||
RIGHT JOIN rtree1 ON true INNER JOIN t3 ON (x NOTNULL)=a;
|
||||
} {}
|
||||
}
|
||||
|
||||
|
||||
reset_db
|
||||
do_execsql_test join8-19000 {
|
||||
CREATE TABLE t1(a INT);
|
||||
CREATE TABLE t2(b INT, c INT);
|
||||
CREATE TABLE t3(d INT);
|
||||
|
||||
INSERT INTO t1 VALUES(10);
|
||||
INSERT INTO t2 VALUES(50,51);
|
||||
INSERT INTO t3 VALUES(299);
|
||||
|
||||
CREATE INDEX t2b ON t2( (b IS NOT NULL) );
|
||||
}
|
||||
|
||||
do_execsql_test join8-19010 {
|
||||
SELECT * FROM t1 LEFT JOIN t2 ON true INNER JOIN t3 ON (b IS NOT NULL)=0;
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
Loading…
Reference in New Issue
Block a user