Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f6ccf7

Browse files
committed
fix bogus coding in RuntimeMergeAppend custom node
1 parent83cd021 commit1f6ccf7

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
#defineFillStateField(name,type,method) \
136136
do \
137137
{ \
138-
ListCell *lc; \
139-
inti = 0; \
138+
ListCell*lc; \
139+
inti = 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)

[8]ページ先頭

©2009-2025 Movatter.jp