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 #***********************************************************************
12 # Tests for the SQLITE_RECOVER_ROWIDS option.
15 source [file join [file dirname [info script]] recover_common.tcl]
16 set testprefix recoverrowid
18 proc recover {db bRowids output} {
21 set R [sqlite3_recover_init db main test.db2]
22 $R config rowids $bRowids
28 CREATE TABLE t1(a, b);
29 INSERT INTO t1 VALUES(1, 1), (2, 2), (3, 3), (4, 4);
30 DELETE FROM t1 WHERE a IN (1, 3);
36 execsql { SELECT rowid, a, b FROM t1 ORDER BY rowid} db2
43 execsql { SELECT rowid, a, b FROM t1 ORDER BY rowid} db2