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 ifcapable !fts5 { finish_test ; return }
15 set ::testprefix fts5secure6
17 db progress 1 progress_handler
19 proc progress_handler {args} {
21 if {($::PHC % 100000)==0} breakpoint
27 DROP TABLE IF EXISTS t1;
28 CREATE VIRTUAL TABLE t1 USING fts5(x);
30 VALUES(1) UNION ALL SELECT i+1 FROM s WHERE i<1000
32 INSERT INTO t1 SELECT 'a b c d e f g h i j k' FROM s;
41 do_execsql_test 1.$tn.0 {
42 INSERT INTO t1(t1, rank) VALUES('secure-delete', $sd)
45 do_execsql_test 1.$tn.1 { DELETE FROM t1; }
50 expr $phc(1)*5 < $phc(2)