Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/test/fts3integrity.test # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / test / fts3integrity.test` 42 lines ยท 931 bytes Raw Blame History 1 # 2023 December 16 2 # 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. 6 # 7 #*********************************************************************** 8 # This file runs all tests. 9 # 10 # $Id: fts3.test,v 1.2 2008/07/23 18:17:32 drh Exp $ 11 12 set testdir [file dirname $argv0] 13 source $testdir/tester.tcl 14 set ::testprefix fts3integrity 15 16 # If SQLITE_ENABLE_FTS3 is defined, omit this file. 17 ifcapable !fts3 { 18 finish_test 19 return 20 } 21 22 do_execsql_test 1.0 { 23 CREATE VIRTUAL TABLE t1 USING fts3(x); 24 INSERT INTO t1 VALUES('first row'); 25 INSERT INTO t1 VALUES('second row'); 26 27 CREATE TABLE t2(x PRIMARY KEY); 28 INSERT INTO t2 VALUES('first row'); 29 INSERT INTO t2 VALUES('second row'); 30 } 31 32 sqlite3 db2 test.db 33 34 do_execsql_test -db db2 1.1 { 35 CREATE TABLE t3(x, y); 36 } 37 38 do_execsql_test 1.2 { 39 PRAGMA integrity_check; 40 } {ok} 41 42 finish_test