3 # May you do good and not evil.
4 # May you find forgiveness for yourself and forgive others.
5 # May you share freely, never taking more than you give.
7 #***********************************************************************
9 # This file implements regression tests for the FTS SQLite module.
11 # This file implements tests to verify that ticket [9fd058691] has been
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
18 # If SQLITE_ENABLE_FTS3 is defined, omit this file.
24 set ::testprefix fts3-9fd058691
27 CREATE VIRTUAL TABLE fts USING fts3( tags TEXT);
28 INSERT INTO fts (tags) VALUES ('tag1');
29 SELECT * FROM fts WHERE tags MATCH 'tag1';
36 UPDATE fts SET tags = 'tag1' WHERE rowid = 1;
37 SELECT * FROM fts WHERE tags MATCH 'tag1';
46 CREATE VIRTUAL TABLE fts USING fts3(tags TEXT);
47 INSERT INTO fts (docid, tags) VALUES (1, 'tag1');
48 INSERT INTO fts (docid, tags) VALUES (2, NULL);
49 INSERT INTO fts (docid, tags) VALUES (3, 'three');
54 UPDATE fts SET tags = 'two' WHERE rowid = 2;
55 SELECT * FROM fts WHERE tags MATCH 'two';