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 #***********************************************************************
14 source [file join [file dirname [info script]] recover_common.tcl]
15 set testprefix recoversql
18 CREATE TABLE "x.1" (x, y);
19 INSERT INTO "x.1" VALUES(1, 1), (2, 2), (3, 3);
20 CREATE INDEX "i.1" ON "x.1"(y, x);
25 if {$::iSqlHook==$::sql_hook_cnt} { return 4 }
32 set R [sqlite3_recover_init_sql db main sql_hook]
37 set nSqlCall $iSqlHook
39 for {set ii 1} {$ii<$nSqlCall} {incr ii} {
43 set R [sqlite3_recover_init_sql db main sql_hook]
47 list [catch { $R finish } msg] $msg
48 } {1 {callback returned an error - 4}}