1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add asserts() for a couple of unreachable conditions. Add the Mandelbrot Set

query as a test case.

FossilOrigin-Name: 2ad4583c0cc7988f0dfe78fd0a2eb0fdb92d835a
This commit is contained in:
drh
2014-01-18 15:22:53 +00:00
parent ebbf08a012
commit 75303a2c68
5 changed files with 55 additions and 13 deletions

View File

@@ -3390,7 +3390,8 @@ case OP_SwapCursors: {
p->apCsr[pOp->p1] = p->apCsr[pOp->p2];
p->apCsr[pOp->p2] = pTmp;
rc = sqlite3BtreeClearTable(pTmp->pBt, MASTER_ROOT + !pTmp->isTable, 0);
assert( pTmp->isTable );
rc = sqlite3BtreeClearTable(pTmp->pBt, MASTER_ROOT, 0);
break;
}
#endif /* ifndef SQLITE_OMIT_CTE */