Skip to content

Commit ace45b9

Browse files
committed
Merge branch 'master' into picky_nodes
2 parents 4efb205 + 1f6ccf7 commit ace45b9

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
@@ -133,12 +133,12 @@ unpack_runtimemergeappend_private(RuntimeMergeAppendState *scan_state,
133133
#define FillStateField(name, type, method) \
134134
do \
135135
{ \
136-
ListCell *lc; \
137-
int i = 0; \
136+
ListCell *lc; \
137+
int i = 0; \
138138
Assert(scan_state->numCols == list_length(name)); \
139-
scan_state->name = palloc(scan_state->numCols * sizeof(type)); \
139+
scan_state->name = palloc0(scan_state->numCols * sizeof(type)); \
140140
foreach (lc, name) \
141-
scan_state->name[i] = lfirst_int(lc); \
141+
scan_state->name[i++] = method(lc); \
142142
} \
143143
while (0)
144144

@@ -225,8 +225,8 @@ create_runtimemergeappend_path(PlannerInfo *root,
225225

226226
Plan *
227227
create_runtimemergeappend_plan(PlannerInfo *root, RelOptInfo *rel,
228-
CustomPath *best_path, List *tlist,
229-
List *clauses, List *custom_plans)
228+
CustomPath *best_path, List *tlist,
229+
List *clauses, List *custom_plans)
230230
{
231231
CustomScan *node;
232232
Plan *plan;

0 commit comments

Comments
 (0)