From: drh Date: Fri, 6 Nov 2015 04:14:38 +0000 (+0000) Subject: More test cases for indexes on large numeric values. X-Git-Tag: version-3.10.0~164^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa8ff2ff6aea8cc8132bbdfd4f1304c4b6c6b926;p=thirdparty%2Fsqlite.git More test cases for indexes on large numeric values. FossilOrigin-Name: c220741a62808c64d42c6161152ab06af74cb48c --- diff --git a/manifest b/manifest index 77daa100c0..51dce57c40 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Some\ssimple\stest\scases\sfrom\sthe\smailing\slist. -D 2015-11-06T03:37:02.272 +C More\stest\scases\sfor\sindexes\son\slarge\snumeric\svalues. +D 2015-11-06T04:14:38.328 F Makefile.in 3a705bb4bd12e194212ddbdbf068310d17153cdb F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 702d3e98f3afc6587a78481257f3c4c900efc3a4 @@ -902,7 +902,7 @@ F test/notify3.test 10ff25cde502e72a92053a2f215d64bece4ef934 F test/notnull.test f8fcf58669ddba79274daa2770d61dfad8274f62 F test/null.test 0dcce4f04284ec66108c503327ad6d224c0752b3 F test/numcast.test 5d126f7f581432e86a90d1e35cac625164aec4a1 -F test/numindex1.test 6a72785828bd48deb0187480d1f821f643503254 +F test/numindex1.test 20a5450d4b056e48cd5db30e659f13347a099823 F test/offset1.test f06b83657bcf26f9ce805e67450e189e282143b2 F test/openv2.test 0d3040974bf402e19b7df4b783e447289d7ab394 F test/orderby1.test 870e150450437d3980badbde3d0166b81d9e33f6 @@ -1399,7 +1399,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P cfcaa0ff276b1936418abe72c7e0c99d90d37885 -R 935a655a72fb7279f445266ee8ecd942 +P 1d642b73f9e93a1ba291bf265b3d17e46551d70e +R 64855a7c14d6459f4208513a6a2213eb U drh -Z 4bf13cc28fe21ef0ca61de36df50b42a +Z bbc2fe290cec56ea8698b9d9e249b3b7 diff --git a/manifest.uuid b/manifest.uuid index 678514d7ad..bdf1a11827 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -1d642b73f9e93a1ba291bf265b3d17e46551d70e \ No newline at end of file +c220741a62808c64d42c6161152ab06af74cb48c \ No newline at end of file diff --git a/test/numindex1.test b/test/numindex1.test index 8d4f2c695f..c647fc5401 100644 --- a/test/numindex1.test +++ b/test/numindex1.test @@ -40,4 +40,40 @@ do_execsql_test numindex1-1.3 { ORDER BY +x.a, +x.b; } {b==b b==c b<>d c==b c==c c<>d d<>b d<>c d==d} +# New test cases +# +do_execsql_test numindex1-2.1 { + DROP TABLE IF EXISTS t1; + CREATE TABLE t1(a INTEGER PRIMARY KEY,b); + CREATE INDEX t1b ON t1(b); + WITH RECURSIVE c(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM c WHERE x<100) + INSERT INTO t1(a,b) SELECT x, 10000000000000004.0 FROM c + WHERE x NOT IN (23,37); + INSERT INTO t1(a,b) VALUES(23,10000000000000005); + INSERT INTO t1(a,b) VALUES(37,10000000000000003); + DELETE FROM t1 WHERE a NOT IN (23,37); + PRAGMA integrity_check; +} {ok} + +do_execsql_test numindex1-3.1 { + DROP TABLE IF EXISTS t1; + CREATE TABLE t1(a INTEGER PRIMARY KEY,b); + CREATE INDEX t1b ON t1(b); + WITH RECURSIVE c(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM c WHERE x<20) + INSERT INTO t1(a,b) SELECT x, 100000000000000005.0 + FROM c WHERE x NOT IN (3,5,7,11,13,17,19); + INSERT INTO t1(a,b) VALUES(3,100000000000000005); + INSERT INTO t1(a,b) VALUES(5,100000000000000000); + INSERT INTO t1(a,b) VALUES(7,100000000000000008); + INSERT INTO t1(a,b) VALUES(11,100000000000000006); + INSERT INTO t1(a,b) VALUES(13,100000000000000001); + INSERT INTO t1(a,b) VALUES(17,100000000000000004); + INSERT INTO t1(a,b) VALUES(19,100000000000000003); + PRAGMA integrity_check; +} {ok} + +do_execsql_test numindex1-3.2 { + SELECT a FROM t1 ORDER BY b; +} {1 2 4 5 6 8 9 10 12 14 15 16 18 20 13 19 17 3 11 7} + finish_test