diff options
author | drh <> | 2021-03-18 13:19:41 +0000 |
---|---|---|
committer | drh <> | 2021-03-18 13:19:41 +0000 |
commit | e44ac3858c2d2a7b74bcd554697f93ffc9127c38 (patch) | |
tree | c09b263e50feba6033397a90026eb6ce595a5be8 /src/vdbeaux.c | |
parent | 2b994ce5d3afc0e13affaf613ae3a5035e532e4d (diff) | |
download | sqlite-e44ac3858c2d2a7b74bcd554697f93ffc9127c38.tar.gz sqlite-e44ac3858c2d2a7b74bcd554697f93ffc9127c38.zip |
New assert statements associated with Ephemeral cursors in the bytecode engine.
FossilOrigin-Name: a8ce73e2573b271d5d45838802ed1905ce5e18d5fafe0078700e79fab85457e2
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index ede652dfa..662379ea8 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -2472,6 +2472,7 @@ void sqlite3VdbeFreeCursor(Vdbe *p, VdbeCursor *pCx){ return; } assert( pCx->pBtx==0 || pCx->eCurType==CURTYPE_BTREE ); + assert( pCx->pBtx==0 || pCx->isEphemeral ); switch( pCx->eCurType ){ case CURTYPE_SORTER: { sqlite3VdbeSorterClose(p->db, pCx); @@ -3569,6 +3570,7 @@ int sqlite3VdbeCursorMoveto(VdbeCursor **pp, u32 *piCol){ assert( p->eCurType==CURTYPE_BTREE || p->eCurType==CURTYPE_PSEUDO ); if( p->deferredMoveto ){ u32 iMap; + assert( !p->isEphemeral ); if( p->aAltMap && (iMap = p->aAltMap[1+*piCol])>0 && !p->nullRow ){ *pp = p->pAltCursor; *piCol = iMap - 1; |