diff options
author | drh <> | 2022-04-16 13:55:48 +0000 |
---|---|---|
committer | drh <> | 2022-04-16 13:55:48 +0000 |
commit | 977eef6cdc97f55c551aed68cd7621d551c1b63f (patch) | |
tree | 7f850761487661b3f52f294cf666ca51c9df574a /src | |
parent | bdbda1eb1f47462d3b61129e409e0219e3203787 (diff) | |
download | sqlite-977eef6cdc97f55c551aed68cd7621d551c1b63f.tar.gz sqlite-977eef6cdc97f55c551aed68cd7621d551c1b63f.zip |
New test cases. One of the new test cases shows a flaw in the base design
of RIGHT JOIN.
FossilOrigin-Name: 4c3ce6475a67b1e207a5b63d9e2d38ee5bc45c899ad00ee327f292bf59039b9c
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index d1698b127..09b16f1ad 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -684,7 +684,9 @@ static int lookupName( const char *zErr; if( pFJMatch ){ if( pFJMatch->nExpr==cnt-1 ){ - if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){ + if( ExprHasProperty(pExpr,EP_Leaf) ){ + ExprClearProperty(pExpr,EP_Leaf); + }else{ sqlite3ExprDelete(db, pExpr->pLeft); pExpr->pLeft = 0; sqlite3ExprDelete(db, pExpr->pRight); |