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

Fix RIGHT JOIN for virtual tables.

FossilOrigin-Name: 75a9116e98b9ac5c1a4c62a01143a016d9ba6a0b495ff7af7468c11947a3e888
This commit is contained in:
drh
2022-04-11 21:00:38 +00:00
parent c133bab72a
commit b087de063b
3 changed files with 13 additions and 8 deletions

View File

@@ -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++){