]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Adding test case for ticket [002caede898]
authordrh <drh@noemail.net>
Thu, 15 Sep 2011 19:39:42 +0000 (19:39 +0000)
committerdrh <drh@noemail.net>
Thu, 15 Sep 2011 19:39:42 +0000 (19:39 +0000)
FossilOrigin-Name: 62dfc51a495be017605cf315d72e2db91bfa28f7

manifest
manifest.uuid
test/tkt-31338dca7e.test

index 2fde9a8aa6ab51ed06402ecfa6e9c94cf59e25dc..ef2b75267cc07597f65811db09f6a06bb44fa84c 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Cleanup/fix\serror\shandling\swhen\sno\sarguments\sare\ssupplied\sto\sthe\sSQLite\sanalyzer.
-D 2011-09-15T00:40:11.725
+C Adding\stest\scase\sfor\sticket\s[002caede898]
+D 2011-09-15T19:39:42.113
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in d314143fa6be24828021d3f583ad37d9afdce505
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -715,7 +715,7 @@ F test/tkt-02a8e81d44.test 58494de77be2cf249228ada3f313fa399821c6ab
 F test/tkt-26ff0c2d1e.test 888324e751512972c6e0d1a09df740d8f5aaf660
 F test/tkt-2d1a5c67d.test b028a811049eb472cb2d3a43fc8ce4f6894eebda
 F test/tkt-2ea2425d34.test 1cf13e6f75d149b3209a0cb32927a82d3d79fb28
-F test/tkt-31338dca7e.test 5741cd48de500347a437ba1be58c8335e83c5a5e
+F test/tkt-31338dca7e.test cbfc6c0a43dca5b1f46a0f727bfc93e312117fc2
 F test/tkt-313723c356.test c47f8a9330523e6f35698bf4489bcb29609b53ac
 F test/tkt-38cb5df375.test 9e9b19857dba0896a8efdaf334d405ba423492f2
 F test/tkt-3998683a16.test 6d1d04d551ed1704eb3396ca87bb9ccc8c5c1eb7
@@ -961,7 +961,10 @@ F tool/symbols.sh caaf6ccc7300fd43353318b44524853e222557d5
 F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings.sh b7fdb2cc525f5ef4fa43c80e771636dd3690f9d2
-P 3035dc1c7398791d550f4c02774ef7f961b4bb02
-R 58029ae8750333d2c5d6f46b6d3f7365
-U mistachkin
-Z 3ee1857491433480e0555890625ce07e
+P 3fc566ac5dfce314ee414a3fb79daeeed6d0f179
+R 3df652f1b6c038f8caa8cb1ea6bf4532
+T *branch * tkt-002caede898
+T *sym-tkt-002caede898 *
+T -sym-trunk *
+U drh
+Z 9197dd7d4afe8679532f19b1e34148bf
index 54f2b7b254aca4a448b9a25d5867820b263e17f7..993429f0851400b76ad45062d0ba2bc9aee58bf4 100644 (file)
@@ -1 +1 @@
-3fc566ac5dfce314ee414a3fb79daeeed6d0f179
\ No newline at end of file
+62dfc51a495be017605cf315d72e2db91bfa28f7
\ No newline at end of file
index 3f66816d64893048b7db80ab71c436a7fdbe81ab..e0f3a265b0dcaf6289b3596dd69bcb9094b79b4e 100644 (file)
@@ -74,4 +74,42 @@ do_test tkt-31338-2.2 {
 } {111 222 222 333 888 333 444 444 555 888 333 444 444 555 999}
 
 
+# Ticket [2c2de252666662f5459904fc33a9f2956cbff23c]
+#
+do_test tkt-31338-3.1 {
+  foreach x [db eval {SELECT name FROM sqlite_master WHERE type='table'}] {
+     db eval "DROP TABLE $x"
+  }
+  db eval {
+    CREATE TABLE t1(a,b,c,d);
+    CREATE TABLE t2(e,f);
+    INSERT INTO t1 VALUES(1,2,3,4);
+    INSERT INTO t2 VALUES(10,-8);
+    CREATE INDEX t1a ON t1(a);
+    CREATE INDEX t1b ON t1(b);
+    CREATE TABLE t3(g);
+    INSERT INTO t3 VALUES(4);
+    CREATE TABLE t4(h);
+    INSERT INTO t4 VALUES(5);
+    
+    SELECT * FROM t3 LEFT JOIN t1 ON d=g LEFT JOIN t4 ON c=h
+     WHERE (a=1 AND h=4)
+         OR (b IN (
+               SELECT x FROM (SELECT e+f AS x, e FROM t2 ORDER BY 1 LIMIT 2)
+               GROUP BY e
+            ));
+  }    
+} {4 1 2 3 4 {}}
+do_test tkt-31338-3.2 {
+  db eval {    
+    SELECT * FROM t3 LEFT JOIN t1 ON d=g LEFT JOIN t4 ON c=h
+     WHERE (a=1 AND h=4)
+         OR (b=2 AND b NOT IN (
+               SELECT x+1 FROM (SELECT e+f AS x, e FROM t2 ORDER BY 1 LIMIT 2)
+               GROUP BY e
+            ));
+  }    
+} {4 1 2 3 4 {}}
+
+
 finish_test