diff options
author | drh <> | 2022-04-21 13:11:26 +0000 |
---|---|---|
committer | drh <> | 2022-04-21 13:11:26 +0000 |
commit | 18f8600fe6fa709cc2ceaa78982e433737432784 (patch) | |
tree | 1885b3428321ad86b83c73841b3de4b32e9b6252 /src/expr.c | |
parent | 22b410d894fa44d7944c4f0ca5448d3937123f64 (diff) | |
download | sqlite-18f8600fe6fa709cc2ceaa78982e433737432784.tar.gz sqlite-18f8600fe6fa709cc2ceaa78982e433737432784.zip |
Avoid materializing columns of SF_NestedFrom subqueries that are never used.
Other code improvements manually imported from the right-join-paren branch.
FossilOrigin-Name: cd8272fc2a34d1b245fd95208b9b601266ee7d2ff0f5ce52d03752f2c4e852a2
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index eb3ba35ba..a30097134 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1631,6 +1631,7 @@ ExprList *sqlite3ExprListDup(sqlite3 *db, const ExprList *p, int flags){ pItem->eEName = pOldItem->eEName; pItem->done = 0; pItem->bNulls = pOldItem->bNulls; + pItem->bUsed = pOldItem->bUsed; pItem->bSorterRef = pOldItem->bSorterRef; pItem->u = pOldItem->u; } |