diff options
author | drh <> | 2022-04-08 19:20:12 +0000 |
---|---|---|
committer | drh <> | 2022-04-08 19:20:12 +0000 |
commit | a76ac88af86bb5a3753b7fec6c86bfcfaf64f439 (patch) | |
tree | ee7470bbee2c439f2579fe0df96ba784cbc6c01a /src/resolve.c | |
parent | 7d0ae00361386f87d179916d5abc6c11d3c85330 (diff) | |
download | sqlite-a76ac88af86bb5a3753b7fec6c86bfcfaf64f439.tar.gz sqlite-a76ac88af86bb5a3753b7fec6c86bfcfaf64f439.zip |
Preliminary code to support RIGHT JOIN. Everything seems to work, except that
the code to compute the unmatched rows for the RIGHT JOIN has not yet been
added, so the result of a RIGHT JOIN is currently the same as an INNER JOIN.
FossilOrigin-Name: 415abd6731b8e8a605adabfa6066c8a852a8531c300df41325d5f7e75cae5a70
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve.c b/src/resolve.c index 30785ca70..ac00564da 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -367,9 +367,7 @@ static int lookupName( pExpr->iTable = pMatch->iCursor; assert( ExprUseYTab(pExpr) ); pExpr->y.pTab = pMatch->pTab; - /* RIGHT JOIN not (yet) supported */ - assert( (pMatch->fg.jointype & JT_RIGHT)==0 ); - if( (pMatch->fg.jointype & JT_LEFT)!=0 ){ + if( (pMatch->fg.jointype & (JT_LEFT|JT_LTORJ))!=0 ){ ExprSetProperty(pExpr, EP_CanBeNull); } pSchema = pExpr->y.pTab->pSchema; |