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

Add simple tests for new sqlite3BtreeCursorHint() functionality.

FossilOrigin-Name: 1efa6ed584172291edce78faf9021e577583d03b
This commit is contained in:
dan
2014-07-15 11:59:44 +00:00
parent 159c1a18db
commit 91d3a61f8a
8 changed files with 256 additions and 12 deletions

View File

@@ -6184,7 +6184,13 @@ case OP_CursorHint: {
assert( pOp->p1>=0 && pOp->p1<p->nCursor );
assert( pOp->p4type==P4_EXPR );
pC = p->apCsr[pOp->p1];
if( pC ) sqlite3BtreeCursorHint(pC->pCursor, pOp->p2, pOp->p4.pExpr);
if( pC ){
sqlite3BtreeCursorHint(pC->pCursor, pOp->p2, pOp->p4.pExpr);
#ifdef SQLITE_TEST
void sqlite3BtreeCursorHintTest(Mem*, Expr*);
sqlite3BtreeCursorHintTest(p->aMem, pOp->p4.pExpr);
#endif
}
break;
}
#endif /* SQLITE_ENABLE_CURSOR_HINTS */