diff options
author | dan <Dan Kennedy> | 2023-11-10 20:55:20 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2023-11-10 20:55:20 +0000 |
commit | fb28a93f75af10d3cf305e1a8c1cb6656d781bdd (patch) | |
tree | 4d9b183bd5603ebe05f6559d0524e992f6ce74ae /src | |
parent | 88dcfe56dab431ef7c1bad9b3f55cfcefc28e022 (diff) | |
download | sqlite-fb28a93f75af10d3cf305e1a8c1cb6656d781bdd.tar.gz sqlite-fb28a93f75af10d3cf305e1a8c1cb6656d781bdd.zip |
Fix another problem with mixed join types and the RIGHT JOIN strength-reduction optimization. [forum:/forumpost/befdab472d | Forum post befdab472d].
FossilOrigin-Name: f1eae192315335d7e385b0a801a17700a9718d245bda6628518c5df9a1e9d3d6
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c index c2685b370..2b28d9ca5 100644 --- a/src/select.c +++ b/src/select.c @@ -7416,7 +7416,7 @@ int sqlite3Select( } } } - for(j=pTabList->nSrc-1; j>=i; j--){ + for(j=pTabList->nSrc-1; j>=0; j--){ pTabList->a[j].fg.jointype &= ~JT_LTORJ; if( pTabList->a[j].fg.jointype & JT_RIGHT ) break; } |