mirror of
https://github.com/status-im/sqlcipher.git
synced 2026-08-31 14:31:11 +00:00
explicit test for opening 2.0 format db with hmac
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user