Fix the max_page_count pragma so that it will not set to a value smaller

than the current database size, as the documentation requires.  Also,
remove all occurances of atoi() from the core.

FossilOrigin-Name: 2031974b606ef713b5f34522b2221470d98687c5
This commit is contained in:
drh
2010-11-23 18:59:27 +00:00
parent 15eac4e48a
commit 60ac3f426c
8 changed files with 81 additions and 49 deletions
+1 -1
View File
@@ -1062,7 +1062,7 @@ do_execsql_test pager1-6.8 {
} {11}
do_execsql_test pager1-6.9 { COMMIT } {}
do_execsql_test pager1-6.10 { PRAGMA max_page_count = 10 } {10}
do_execsql_test pager1-6.10 { PRAGMA max_page_count = 10 } {11}
do_execsql_test pager1-6.11 { SELECT * FROM t11 } {1 2 3 4}
do_execsql_test pager1-6.12 { PRAGMA max_page_count } {11}