Skip to content

Commit 1f6ccf7

Browse files
committed
fix bogus coding in RuntimeMergeAppend custom node
1 parent 83cd021 commit 1f6ccf7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/runtime_merge_append.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ unpack_runtimemergeappend_private(RuntimeMergeAppendState *scan_state,
135135
#define FillStateField(name, type, method) \
136136
do \
137137
{ \
138-
ListCell *lc; \
139-
int i = 0; \
138+
ListCell *lc; \
139+
int i = 0; \
140140
Assert(scan_state->numCols == list_length(name)); \
141-
scan_state->name = palloc(scan_state->numCols * sizeof(type)); \
141+
scan_state->name = palloc0(scan_state->numCols * sizeof(type)); \
142142
foreach (lc, name) \
143-
scan_state->name[i] = lfirst_int(lc); \
143+
scan_state->name[i++] = method(lc); \
144144
} \
145145
while (0)
146146

@@ -197,8 +197,8 @@ create_runtimemergeappend_path(PlannerInfo *root,
197197

198198
Plan *
199199
create_runtimemergeappend_plan(PlannerInfo *root, RelOptInfo *rel,
200-
CustomPath *best_path, List *tlist,
201-
List *clauses, List *custom_plans)
200+
CustomPath *best_path, List *tlist,
201+
List *clauses, List *custom_plans)
202202
{
203203
CustomScan *node;
204204
Plan *plan;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy