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. The
12 # focus of this script is testing the FTS3 module.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
17 set testprefix fts3expr5
19 # If SQLITE_ENABLE_FTS3 is defined, omit this file.
25 #-------------------------------------------------------------------------
26 # Various forms of empty phrase expressions.
29 CREATE VIRTUAL TABLE t0 USING fts3(x);
30 SELECT rowid FROM t0 WHERE x MATCH '';
33 SELECT rowid FROM t0 WHERE x MATCH '""';
36 SELECT rowid FROM t0 WHERE x MATCH '"" ""';
39 SELECT rowid FROM t0 WHERE x MATCH '"" OR ""';
42 SELECT rowid FROM t0 WHERE x MATCH '"" NOT ""';
45 SELECT rowid FROM t0 WHERE x MATCH '""""';