mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Handle the case where the estimated cost of a virtual table scan is larger than SQLITE_BIG_DBL. Ticket #2253. (CVS 3670)
FossilOrigin-Name: 52885ed8b76a06588acf202a38b4feabfca1cfd1
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is creating and dropping virtual tables.
|
||||
#
|
||||
# $Id: vtab1.test,v 1.40 2007/02/21 16:52:12 danielk1977 Exp $
|
||||
# $Id: vtab1.test,v 1.41 2007/03/02 08:12:23 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -890,28 +890,6 @@ do_test vtab1.11-5 {
|
||||
}
|
||||
} {{2 1} {2 2}}
|
||||
|
||||
# See ticket #2244
|
||||
#
|
||||
do_test vtab1.2244-1 {
|
||||
execsql {
|
||||
CREATE TABLE t2244(a, b);
|
||||
CREATE VIRTUAL TABLE t2244e USING echo(t2244);
|
||||
INSERT INTO t2244 VALUES('AA', 'BB');
|
||||
INSERT INTO t2244 VALUES('CC', 'DD');
|
||||
SELECT rowid, * FROM t2244e;
|
||||
}
|
||||
} {1 AA BB 2 CC DD}
|
||||
do_test vtab1.2244-2 {
|
||||
execsql {
|
||||
SELECT * FROM t2244e WHERE rowid = 10;
|
||||
}
|
||||
} {}
|
||||
do_test vtab1.2244-3 {
|
||||
execsql {
|
||||
UPDATE t2244e SET a = 'hello world' WHERE 0;
|
||||
SELECT rowid, * FROM t2244e;
|
||||
}
|
||||
} {1 AA BB 2 CC DD}
|
||||
|
||||
unset -nocomplain echo_module_begin_fail
|
||||
finish_test
|
||||
|
@ -12,7 +12,7 @@
|
||||
# focus of this file inserting into virtual tables from a SELECT
|
||||
# statement.
|
||||
#
|
||||
# $Id: vtab8.test,v 1.1 2007/03/02 07:27:01 danielk1977 Exp $
|
||||
# $Id: vtab8.test,v 1.2 2007/03/02 08:12:23 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -57,8 +57,7 @@ do_test vtab1-2250-2 {
|
||||
}
|
||||
} {1 1}
|
||||
|
||||
# See ticket #2260 (note: this test doesn't trigger the bug yet - it's a
|
||||
# work in progress).
|
||||
# See ticket #2260.
|
||||
#
|
||||
do_test vtab1.2260-1 {
|
||||
execsql {
|
||||
|
Reference in New Issue
Block a user