2 set testdir [file dirname $argv0]
3 source $testdir/tester.tcl
10 register_echo_module [sqlite3_connection_pointer db]
15 CREATE TABLE t1(a PRIMARY KEY, b UNIQUE);
17 for {set i 0} {$i < 500} {incr i} {
18 execsql { INSERT INTO t1 VALUES($i, $i*$i) }
22 CREATE VIRTUAL TABLE e USING echo(t1);
23 SELECT count(*) FROM e;
28 execsql { SELECT * FROM e WHERE a = 1 OR a = 2 }
32 execsql { SELECT * FROM e WHERE a = 1 OR a = 2 }
35 xFilter {SELECT rowid, a, b FROM 't1' WHERE a = ?} 1 \
36 xFilter {SELECT rowid, a, b FROM 't1' WHERE a = ?} 2 \
40 execsql { SELECT * FROM e WHERE a = 1 OR a = 2 OR b = 9 }
44 execsql { SELECT * FROM e WHERE a = 1 OR a = 2 OR b = 9 }
47 xFilter {SELECT rowid, a, b FROM 't1' WHERE a = ?} 1 \
48 xFilter {SELECT rowid, a, b FROM 't1' WHERE a = ?} 2 \
49 xFilter {SELECT rowid, a, b FROM 't1' WHERE b = ?} 9