-
-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
What I wanted to know is if this is the intended behavior for Sqlitemc.
I'm compiling Sqlitemc with SQLITE_DEBUG set just for the tests. The assertion failure happens if you try to decrypt the DB with an incorrect passphrase (Sqleet) using PRAGMA key which exactly is the scenario I'm trying to test with Mocha. But since JS doesn't catch C++ runtime errors, the whole test process fails because of it.
// Line 53647 in amalgamated sqlite3.c
case PAGER_READER:
assert( pPager->errCode==SQLITE_OK ); //⬅ this one
assert( p->eLock!=UNKNOWN_LOCK );
assert( p->eLock>=SHARED_LOCK );
break;Was this assert() supposed fail on the above mentioned scenario? 🤔
Metadata
Metadata
Assignees
Labels
No labels