| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 execsql " | 209 execsql " |
| 210 PRAGMA page_size=$PGSZ; | 210 PRAGMA page_size=$PGSZ; |
| 211 CREATE TABLE t1(x); | 211 CREATE TABLE t1(x); |
| 212 CREATE TEMP TABLE t2(y); | 212 CREATE TEMP TABLE t2(y); |
| 213 PRAGMA main.page_size; | 213 PRAGMA main.page_size; |
| 214 PRAGMA temp.page_size; | 214 PRAGMA temp.page_size; |
| 215 " | 215 " |
| 216 } [list $PGSZ $PGSZ] | 216 } [list $PGSZ $PGSZ] |
| 217 } | 217 } |
| 218 | 218 |
| 219 reset_db |
| 220 do_execsql_test pagesize-3.1 { |
| 221 BEGIN; |
| 222 SELECT * FROM sqlite_master; |
| 223 PRAGMA page_size=2048; |
| 224 PRAGMA main.page_size; |
| 225 } {1024} |
| 226 do_execsql_test pagesize-3.2 { |
| 227 CREATE TABLE t1(x); |
| 228 COMMIT; |
| 229 } |
| 230 do_execsql_test pagesize-3.3 { |
| 231 BEGIN; |
| 232 PRAGMA page_size = 2048; |
| 233 COMMIT; |
| 234 PRAGMA main.page_size; |
| 235 } {1024} |
| 236 |
| 219 finish_test | 237 finish_test |
| OLD | NEW |