| OLD | NEW |
| 1 # 2005 February 15 | 1 # 2005 February 15 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } {ok} | 128 } {ok} |
| 129 do_test vacuum2-3.17 { | 129 do_test vacuum2-3.17 { |
| 130 execsql {PRAGMA integrity_check} db | 130 execsql {PRAGMA integrity_check} db |
| 131 } {ok} | 131 } {ok} |
| 132 | 132 |
| 133 db2 close | 133 db2 close |
| 134 | 134 |
| 135 ifcapable autovacuum { | 135 ifcapable autovacuum { |
| 136 do_test vacuum2-4.1 { | 136 do_test vacuum2-4.1 { |
| 137 db close | 137 db close |
| 138 file delete -force test.db | 138 forcedelete test.db |
| 139 sqlite3 db test.db | 139 sqlite3 db test.db |
| 140 execsql { | 140 execsql { |
| 141 pragma auto_vacuum=1; | 141 pragma auto_vacuum=1; |
| 142 create table t(a, b); | 142 create table t(a, b); |
| 143 insert into t values(1, 2); | 143 insert into t values(1, 2); |
| 144 insert into t values(1, 2); | 144 insert into t values(1, 2); |
| 145 pragma auto_vacuum=0; | 145 pragma auto_vacuum=0; |
| 146 vacuum; | 146 vacuum; |
| 147 pragma auto_vacuum; | 147 pragma auto_vacuum; |
| 148 } | 148 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 set res2 "" | 222 set res2 "" |
| 223 db eval {SELECT a, b FROM t1 WHERE a<=10} { | 223 db eval {SELECT a, b FROM t1 WHERE a<=10} { |
| 224 if {$a==6} { set res [catchsql VACUUM] } | 224 if {$a==6} { set res [catchsql VACUUM] } |
| 225 lappend res2 $a | 225 lappend res2 $a |
| 226 } | 226 } |
| 227 lappend res2 $res | 227 lappend res2 $res |
| 228 } {1 2 3 4 5 6 7 8 9 10 {1 {cannot VACUUM - SQL statements in progress}}} | 228 } {1 2 3 4 5 6 7 8 9 10 {1 {cannot VACUUM - SQL statements in progress}}} |
| 229 | 229 |
| 230 | 230 |
| 231 finish_test | 231 finish_test |
| OLD | NEW |