aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordrh <>2022-04-08 19:20:12 +0000
committerdrh <>2022-04-08 19:20:12 +0000
commita76ac88af86bb5a3753b7fec6c86bfcfaf64f439 (patch)
treeee7470bbee2c439f2579fe0df96ba784cbc6c01a /src/treeview.c
parent7d0ae00361386f87d179916d5abc6c11d3c85330 (diff)
downloadsqlite-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/treeview.c')
-rw-r--r--src/treeview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c
index 91aff8ddf..f32064cd8 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -144,8 +144,12 @@ void sqlite3TreeViewSrcList(TreeView *pView, const SrcList *pSrc){
sqlite3_str_appendf(&x, " tab=%Q nCol=%d ptr=%p used=%llx",
pItem->pTab->zName, pItem->pTab->nCol, pItem->pTab, pItem->colUsed);
}
- if( pItem->fg.jointype & JT_LEFT ){
+ if( (pItem->fg.jointype & (JT_LEFT|JT_RIGHT))==(JT_LEFT|JT_RIGHT) ){
+ sqlite3_str_appendf(&x, " FULL-OUTER-JOIN");
+ }else if( pItem->fg.jointype & JT_LEFT ){
sqlite3_str_appendf(&x, " LEFT-JOIN");
+ }else if( pItem->fg.jointype & JT_RIGHT ){
+ sqlite3_str_appendf(&x, " RIGHT-JOIN");
}else if( pItem->fg.jointype & JT_CROSS ){
sqlite3_str_appendf(&x, " CROSS-JOIN");
}