aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/where.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index defbc860f..f1d3ad265 100644
--- a/src/where.c
+++ b/src/where.c
@@ -6181,7 +6181,12 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
int iIdxCur;
mAll |= pWInfo->a[k].pWLoop->maskSelf;
iIdxCur = pWInfo->a[k].iIdxCur;
- if( iIdxCur ) sqlite3VdbeAddOp1(v, OP_NullRow, iIdxCur);
+ if( iIdxCur ){
+ sqlite3VdbeAddOp1(v, OP_NullRow, iIdxCur);
+ }
+ if( pWInfo->a[k].pWLoop->wsFlags & WHERE_VIRTUALTABLE ){
+ sqlite3VdbeAddOp1(v, OP_NullRow, pWInfo->a[k].iTabCur);
+ }
}
mAll |= pLoop->maskSelf;
for(k=0; k<pWC->nTerm; k++){