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 #***********************************************************************
13 source [file join [file dirname [info script]] fts5_common.tcl]
14 set testprefix fts5savepoint
16 # If SQLITE_ENABLE_FTS5 is defined, omit this file.
23 CREATE VIRTUAL TABLE ft USING fts5(c);
26 INSERT INTO ft VALUES('a');
28 INSERT INTO ft VALUES('b');
31 INSERT INTO ft VALUES('c');
34 INSERT INTO ft VALUES('d');
41 do_catchsql_test 2.0 {
42 CREATE VIRTUAL TABLE ft1 USING fts5(c);
43 CREATE VIRTUAL TABLE ft2 USING fts5(c);
46 INSERT INTO ft2 VALUES('a');
47 INSERT INTO ft1 VALUES('a');
49 INSERT INTO ft1 VALUES('b');
51 } {1 {SQL logic error}}
56 CREATE VIRTUAL TABLE vt0 USING fts5(c0);
57 CREATE VIRTUAL TABLE vt1 USING fts4(c0);
58 INSERT INTO vt1(c0) VALUES(0);
63 UPDATE vt1 SET c0 = 0;
64 INSERT INTO vt1(c0) VALUES (0), (0);
65 UPDATE vt0 SET c0 = 0;
66 INSERT INTO vt1(c0) VALUES (0);
67 UPDATE vt1 SET c0 = 0;
68 INSERT INTO vt1(vt1) VALUES('automerge=1');
69 UPDATE vt1 SET c0 = 0;
72 do_catchsql_test 3.2 {
78 INSERT INTO vt0 VALUES('x');
80 INSERT INTO vt0(vt0) VALUES('integrity-check');