3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library.
14 set testdir [file dirname $argv0]
15 source $testdir/tester.tcl
16 set testprefix indexexpr2
19 CREATE TABLE t1(a, b);
20 INSERT INTO t1 VALUES(1, 'one');
21 INSERT INTO t1 VALUES(2, 'two');
22 INSERT INTO t1 VALUES(3, 'three');
24 CREATE INDEX i1 ON t1(b || 'x');
28 SELECT 'TWOX' == (b || 'x') FROM t1 WHERE (b || 'x')>'onex'
32 SELECT 'TWOX' == (b || 'x') COLLATE nocase FROM t1 WHERE (b || 'x')>'onex'
36 CREATE INDEX i2 ON t1(a+1);
40 SELECT a+1, quote(a+1) FROM t1 ORDER BY 1;