1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

More test cases and requirements marks for pragmas.

FossilOrigin-Name: fc51037cd97063069620213a62efdeff5d898706
This commit is contained in:
drh
2015-02-28 01:04:27 +00:00
parent e0e8429543
commit 51a74d4cbd
6 changed files with 42 additions and 19 deletions

View File

@ -1316,18 +1316,23 @@ ifcapable pager_pragmas {
db close
forcedelete test.db
sqlite3 db test.db
# EVIDENCE-OF: R-13905-26312 PRAGMA database.page_count; Return the
# total number of pages in the database file.
#
do_test pragma-14.1 {
execsql { pragma auto_vacuum = 0 }
execsql { pragma page_count }
} {0}
execsql { pragma page_count; pragma main.page_count }
} {0 0}
do_test pragma-14.2 {
execsql {
CREATE TABLE abc(a, b, c);
PRAGMA page_count;
PRAGMA main.page_count;
PRAGMA temp.page_count;
}
} {2}
} {2 2 0}
do_test pragma-14.2uc {
execsql {pragma PAGE_COUNT}
} {2}