OLD | NEW |
1 # 2004 September 2 | 1 # 2004 September 2 |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 do_test pagesize-2.$PGSZ.15 { | 181 do_test pagesize-2.$PGSZ.15 { |
182 execsql {DELETE FROM t1 WHERE rowid%5!=0} | 182 execsql {DELETE FROM t1 WHERE rowid%5!=0} |
183 ifcapable {vacuum} {execsql VACUUM} | 183 ifcapable {vacuum} {execsql VACUUM} |
184 execsql {SELECT count(*) FROM t1} | 184 execsql {SELECT count(*) FROM t1} |
185 } 38 | 185 } 38 |
186 do_test pagesize-2.$PGSZ.16 { | 186 do_test pagesize-2.$PGSZ.16 { |
187 execsql {DROP TABLE t1} | 187 execsql {DROP TABLE t1} |
188 ifcapable {vacuum} {execsql VACUUM} | 188 ifcapable {vacuum} {execsql VACUUM} |
189 } {} | 189 } {} |
190 integrity_check pagesize-2.$PGSZ.17 | 190 integrity_check pagesize-2.$PGSZ.17 |
| 191 |
| 192 db close |
| 193 file delete -force test.db |
| 194 sqlite3 db test.db |
| 195 do_test pagesize-2.$PGSZ.30 { |
| 196 execsql " |
| 197 CREATE TABLE t1(x); |
| 198 PRAGMA temp.page_size=$PGSZ; |
| 199 CREATE TEMP TABLE t2(y); |
| 200 PRAGMA main.page_size; |
| 201 PRAGMA temp.page_size; |
| 202 " |
| 203 } [list 1024 $PGSZ] |
| 204 |
| 205 db close |
| 206 file delete -force test.db |
| 207 sqlite3 db test.db |
| 208 do_test pagesize-2.$PGSZ.40 { |
| 209 execsql " |
| 210 PRAGMA page_size=$PGSZ; |
| 211 CREATE TABLE t1(x); |
| 212 CREATE TEMP TABLE t2(y); |
| 213 PRAGMA main.page_size; |
| 214 PRAGMA temp.page_size; |
| 215 " |
| 216 } [list $PGSZ $PGSZ] |
191 } | 217 } |
192 | 218 |
193 finish_test | 219 finish_test |
OLD | NEW |