8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c73285 commit dbb2a93Copy full SHA for dbb2a93
src/backend/executor/execExpr.c
@@ -511,15 +511,21 @@ List *
511
ExecPrepareExprList(List *nodes, EState *estate)
512
{
513
List *result = NIL;
514
+ MemoryContext oldcontext;
515
ListCell *lc;
516
517
+ /* Ensure that the list cell nodes are in the right context too */
518
+ oldcontext = MemoryContextSwitchTo(estate->es_query_cxt);
519
+
520
foreach(lc, nodes)
521
522
Expr *e = (Expr *) lfirst(lc);
523
524
result = lappend(result, ExecPrepareExpr(e, estate));
525
}
526
527
+ MemoryContextSwitchTo(oldcontext);
528
529
return result;
530
531
0 commit comments