When using an index to scan a database table, read column data from the index in preference to the table. This increases the likelihood that the table will not be required at all. (CVS 4580)

FossilOrigin-Name: 061608c72ac0a96eacf3b64d638235e4739f96ba
This commit is contained in:
danielk1977
2007-11-29 17:43:27 +00:00
parent 9a96b66810
commit 21de2e755c
5 changed files with 30 additions and 28 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
# This file implements tests for the special processing associated
# with INTEGER PRIMARY KEY columns.
#
# $Id: intpkey.test,v 1.23 2005/07/21 03:48:20 drh Exp $
# $Id: intpkey.test,v 1.24 2007/11/29 17:43:28 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -293,7 +293,7 @@ do_test intpkey-3.8 {
count {
SELECT * FROM t1 WHERE c=='world' AND a>7;
}
} {11 hello world 5}
} {11 hello world 4}
do_test intpkey-3.9 {
count {
SELECT * FROM t1 WHERE 7<a;