1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

In where.c, split out the code that selects an index into a separate

subroutine. (CVS 2554)

FossilOrigin-Name: c30cbba9ead1b4d07f225b1e8a65d5d5230ea45d
This commit is contained in:
drh
2005-07-21 03:14:59 +00:00
parent 013972052e
commit fe05af87f8
9 changed files with 496 additions and 442 deletions

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the SELECT statement.
#
# $Id: select2.test,v 1.24 2005/01/25 04:27:55 danielk1977 Exp $
# $Id: select2.test,v 1.25 2005/07/21 03:15:01 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -117,6 +117,7 @@ do_test select2-3.2c {
} {500}
do_test select2-3.2d {
set sqlite_search_count 0
btree_breakpoint
execsql {SELECT * FROM tbl2 WHERE 1000=f2}
set sqlite_search_count
} {3}

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the CREATE TABLE statement.
#
# $Id: sort.test,v 1.19 2005/02/02 01:10:45 danielk1977 Exp $
# $Id: sort.test,v 1.20 2005/07/21 03:15:01 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -432,4 +432,3 @@ do_test sort-10.3 {
} {2 1}
finish_test

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is testing correlated subqueries
#
# $Id: subquery.test,v 1.9 2005/05/23 15:06:39 drh Exp $
# $Id: subquery.test,v 1.10 2005/07/21 03:15:01 drh Exp $
#
set testdir [file dirname $argv0]
@@ -228,9 +228,11 @@ do_test subquery-2.5.2 {
do_test subquery-2.5.3 {
execsql {
CREATE INDEX t4i ON t4(x);
--pragma vdbe_listing=on; pragma vdbe_trace=on;
SELECT * FROM t4 WHERE x IN (SELECT a FROM t3);
}
} {10.0}
#exit
do_test subquery-2.5.4 {
execsql {
DROP TABLE t3;