From: shane Date: Mon, 24 Nov 2008 15:32:00 +0000 (+0000) Subject: Added test case to in4.test to try and duplicate crash reported on the mailing list... X-Git-Tag: version-3.6.10~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481e9f2089be57c42bb4fb441df58e4dc21602ed;p=thirdparty%2Fsqlite.git Added test case to in4.test to try and duplicate crash reported on the mailing list. (CVS 5951) FossilOrigin-Name: 8502fba37bb13c019252d0a65973a78982ec44aa --- diff --git a/manifest b/manifest index 062c11b546..12286a4b15 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C fix\sthe\scompile\swarnings\son\sOS/2\s(CVS\s5950) -D 2008-11-22T19:50:54 +C Added\stest\scase\sto\sin4.test\sto\stry\sand\sduplicate\scrash\sreported\son\sthe\smailing\slist.\s(CVS\s5951) +D 2008-11-24T15:32:00 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0 F Makefile.in 0aa7bbe3be6acc4045706e3bb3fd0b8f38f4a3b5 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654 @@ -368,7 +368,7 @@ F test/icu.test f51d0f4407ff8bb1e872f51a0e8b08fdc5a6897e F test/in.test d49419c6df515852f477fa513f3317181d46bc92 F test/in2.test 5d4c61d17493c832f7d2d32bef785119e87bde75 F test/in3.test 3cbf58c87f4052cee3a58b37b6389777505aa0c0 -F test/in4.test c043f75147295e9f6ad5040a5cda2c485736c2c8 +F test/in4.test 9bfd9226a82ac832046abc93acecf42627ebb45a F test/incrblob.test 4b9437bbb38724343dadbbcca6356bc2a9b435d1 F test/incrblob2.test 5cca1c3cb29064c504b3b0cc3e2cd43e8053cfdf F test/incrblob_err.test c577c91d4ed9e8336cdb188b15d6ee2a6fe9604e @@ -662,7 +662,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e -P ce36b6474a62f0a5b8d82968ca9a171f7143ae31 -R a9761d2ccf0f89e6d0cf549915efe398 -U pweilbacher -Z 3da940b1506d2c21ca4dbd3a60e1fbd1 +P b7d0ec838b806e7b2532bef1d59279c32fb206d3 +R 97c5428dfe1f286511e92a6f9dc34468 +U shane +Z 609afe69e97376699d46d710a4ea4c34 diff --git a/manifest.uuid b/manifest.uuid index 5bd089080b..4961fb645c 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -b7d0ec838b806e7b2532bef1d59279c32fb206d3 \ No newline at end of file +8502fba37bb13c019252d0a65973a78982ec44aa \ No newline at end of file diff --git a/test/in4.test b/test/in4.test index c13d8b1674..312a4e1476 100644 --- a/test/in4.test +++ b/test/in4.test @@ -9,7 +9,7 @@ # #*********************************************************************** # -# $Id: in4.test,v 1.1 2008/10/02 13:50:56 danielk1977 Exp $ +# $Id: in4.test,v 1.2 2008/11/24 15:32:00 shane Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl @@ -89,5 +89,31 @@ do_test in4-2.8 { execsql { SELECT b FROM t2 WHERE a IN ('', '0.0.0', '2') } } {two} +# add test case from the mailing list +# (11/7/08 sqlite crash with "WHERE x in ()" query) +do_test in4-3.1 { + execsql { + DROP TABLE IF EXISTS t1; + DROP TABLE IF EXISTS t2; + CREATE TABLE t1(x, id); + CREATE TABLE t2(x, id); + INSERT INTO t1 VALUES(NULL, NULL); + INSERT INTO t1 VALUES(0, NULL); + INSERT INTO t1 VALUES(1, 3); + INSERT INTO t1 VALUES(2, 4); + INSERT INTO t1 VALUES(3, 5); + INSERT INTO t1 VALUES(4, 6); + INSERT INTO t2 VALUES(0, NULL); + INSERT INTO t2 VALUES(4, 1); + INSERT INTO t2 VALUES(NULL, 1); + INSERT INTO t2 VALUES(NULL, NULL); + } +} {} +do_test in4-3.2 { + execsql { + SELECT x FROM t1 WHERE id IN () AND x IN (SELECT x FROM t2 WHERE id=1) + } +} {} + finish_test