aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <>2023-02-26 11:36:35 +0000
committerdrh <>2023-02-26 11:36:35 +0000
commit4edbcdd391f472e16f2a1037175f270ca346dedb (patch)
treef40a2d6ab512d735706a6936490b33589da0d348 /src/select.c
parent2d7829057e3806e232f12b66169158fd8f090266 (diff)
downloadsqlite-4edbcdd391f472e16f2a1037175f270ca346dedb.tar.gz
sqlite-4edbcdd391f472e16f2a1037175f270ca346dedb.zip
In the [/info/7c2d3406000dc8ac|omit-unused-subquery-columns optimization], be
sure to remove the EP_Skip and EP_Unlikely flags from the result set expressions that get nulled-out. dbsqlfuzz bf1d3ed6e0e0dd8766027797d43db40c776d2b15. FossilOrigin-Name: 21aec65e5e2a01e58dd0bb8c8b9b29b8414373b53353fc7ca80a152fdd27566b
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/select.c b/src/select.c
index 1c71dbe54..a882b973e 100644
--- a/src/select.c
+++ b/src/select.c
@@ -5288,6 +5288,7 @@ static int disableUnusedSubqueryResultColumns(SrcItem *pItem){
Expr *pY = pX->pEList->a[j].pExpr;
if( pY->op==TK_NULL ) continue;
pY->op = TK_NULL;
+ ExprClearProperty(pY, EP_Skip|EP_Unlikely);
pX->selFlags |= SF_PushDown;
nChng++;
}