diff options
author | dan <dan@noemail.net> | 2012-04-20 15:24:53 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2012-04-20 15:24:53 +0000 |
commit | 99f8fb66a44fda5c7e9ab49682d87d31cfb8a570 (patch) | |
tree | db7d3ed299eae378154facf59026dcf7164f52ea /test/where.test | |
parent | 50f79f56a8783376a277ad840c78119bfcc4c328 (diff) | |
download | sqlite-99f8fb66a44fda5c7e9ab49682d87d31cfb8a570.tar.gz sqlite-99f8fb66a44fda5c7e9ab49682d87d31cfb8a570.zip |
Fix for 2a5629202f. When considering whether or not a UNIQUE index may be used to optimize an ORDER BY clause, do not assume that all index entries are distinct unless there is some reason to believe that the index contains no NULL values.
FossilOrigin-Name: 9870e4c4fef10112c987c40cb1b95255a7214202
Diffstat (limited to 'test/where.test')
-rw-r--r-- | test/where.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/where.test b/test/where.test index 9145bcc75..3826a5f64 100644 --- a/test/where.test +++ b/test/where.test @@ -1105,15 +1105,17 @@ do_test where-14.4 { } } {1/1 1/4 4/1 4/4 nosort} do_test where-14.5 { + # This test case changed from "nosort" to "sort". See ticket 2a5629202f. cksort { SELECT x.a || '/' || y.a FROM t8 x, t8 y ORDER BY x.b, x.a||x.b } -} {4/1 4/4 1/1 1/4 nosort} +} {4/1 4/4 1/1 1/4 sort} do_test where-14.6 { + # This test case changed from "nosort" to "sort". See ticket 2a5629202f. cksort { SELECT x.a || '/' || y.a FROM t8 x, t8 y ORDER BY x.b, x.a||x.b DESC } -} {4/1 4/4 1/1 1/4 nosort} +} {4/1 4/4 1/1 1/4 sort} do_test where-14.7 { cksort { SELECT x.a || '/' || y.a FROM t8 x, t8 y ORDER BY x.b, y.a||y.b |