explicit test for opening 2.0 format db with hmac

This commit is contained in:
Stephen Lombardo 2012-07-09 23:03:01 -04:00
parent bfff38581c
commit cc0e8be7a3
2 changed files with 11 additions and 0 deletions

BIN
sqlcipher-2.0-testkey.db Normal file

Binary file not shown.

View File

@ -1556,4 +1556,15 @@ do_test multipage-schema-autovacuum-shortread-wal {
db close
file delete -force test.db
# open a 2.0 database verify it can be opened
do_test open-2.0-database {
sqlite_orig db sqlcipher-2.0-testkey.db
execsql {
PRAGMA key = 'testkey';
SELECT count(*) FROM t1;
SELECT * FROM t1;
}
} {4 1 1 one one 1 2 one two}
db close
finish_test