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

PRAGMA integrity_check returns SQLITE_OK even if it encounters corruption

while scanning indexes.

FossilOrigin-Name: 81f62e99f27dedf3dc10fa1593c4cd9fc158680867206aee853e503a0cc8df71
This commit is contained in:
drh
2017-09-13 00:13:05 +00:00
parent 9ecd7086c1
commit 74588ceb31
5 changed files with 31 additions and 15 deletions

View File

@ -1952,7 +1952,7 @@ do_catchsql_test 24.1 {
} {1 {database disk image is malformed}}
do_catchsql_test 24.2 {
PRAGMA integrity_check;
} {1 {database disk image is malformed}}
} {0 {{database disk image is malformed}}}
database_never_corrupt
finish_test