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 recoverclobber
18 proc recover {db output} {
19 set R [sqlite3_recover_init db main test.db2]
26 ATTACH 'test.db2' AS aux;
27 CREATE TABLE aux.x1(x, one);
28 INSERT INTO x1 VALUES(1, 'one'), (2, 'two'), (3, 'three');
30 CREATE TABLE t1(a, b);
31 INSERT INTO t1 VALUES(1, 1), (2, 2), (3, 3), (4, 4);
42 ATTACH 'test.db2' AS aux;
46 do_catchsql_test 1.3 {
48 } {1 {no such table: aux.x1}}