From: dan Date: Wed, 11 Aug 2010 12:26:46 +0000 (+0000) Subject: Update an r-tree extension test case to account for recent changes to the query plann... X-Git-Tag: version-3.7.2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=036391f7f8c55b6e04fa725b7875c93eef95506f;p=thirdparty%2Fsqlite.git Update an r-tree extension test case to account for recent changes to the query planner. Also fix a comment in rtree.c. FossilOrigin-Name: eaaca669a4afc83906806b22365b010c83bc3db8 --- diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index 6576db1412..0bc4dd7e1c 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -1072,11 +1072,10 @@ static int rtreeFilter( ** idxNum idxStr Strategy ** ------------------------------------------------ ** 1 Unused Direct lookup by rowid. -** 2 See below R-tree query. -** 3 Unused Full table scan. +** 2 See below R-tree query or full-table scan. ** ------------------------------------------------ ** -** If strategy 1 or 3 is used, then idxStr is not meaningful. If strategy +** If strategy 1 is used, then idxStr is not meaningful. If strategy ** 2 is used, idxStr is formatted to contain 2 bytes for each ** constraint used. The first two bytes of idxStr correspond to ** the constraint in sqlite3_index_info.aConstraintUsage[] with diff --git a/ext/rtree/rtree6.test b/ext/rtree/rtree6.test index d23a74e06c..bab596e015 100644 --- a/ext/rtree/rtree6.test +++ b/ext/rtree/rtree6.test @@ -88,8 +88,8 @@ do_test rtree6.2.2 { do_test rtree6.2.3 { query_plan {SELECT * FROM t1,t2 WHERE k=ii} } [list \ - {TABLE t2} \ - {TABLE t1 VIRTUAL TABLE INDEX 1:} \ + {TABLE t1 VIRTUAL TABLE INDEX 2:} \ + {TABLE t2 USING PRIMARY KEY} \ ] do_test rtree6.2.4 { @@ -102,8 +102,8 @@ do_test rtree6.2.4 { do_test rtree6.2.5 { query_plan {SELECT * FROM t1,t2 WHERE k=ii AND x1