Skip to content

Commit 2a4b561

Browse files
author
D. Richard Hipp
committed
Fix inverted logic regarding the materialization hint on the push-down
optimization.
1 parent ffd335b commit 2a4b561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6236,7 +6236,7 @@ int sqlite3Select(
62366236
** inside the subquery. This can help the subquery to run more efficiently.
62376237
*/
62386238
if( OptimizationEnabled(db, SQLITE_PushDown)
6239-
&& (pItem->fg.isCte==0 || pItem->u2.pCteUse->eM10d==M10d_Yes)
6239+
&& (pItem->fg.isCte==0 || pItem->u2.pCteUse->eM10d!=M10d_Yes)
62406240
&& pushDownWhereTerms(pParse, pSub, p->pWhere, pItem->iCursor,
62416241
(pItem->fg.jointype & JT_OUTER)!=0)
62426242
){

0 commit comments

Comments
 (0)