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

Commite152661

Browse files
committed
Fixes:
It's bug in nodeAgg.c on lines 241, 242: null_array = malloc(nagg); for (i=0;i<nagg;i++) null_array[i] = 'n'; oneTuple = heap_formtuple(tupType, tupValue, null_array);- your query has not only aggregates but also 'group by-ed' fields and sonull_array should contain tupType->natts elements (tupType->natts > nagg inyour case).Patch follows and it's very simple.VAdim
1 parentc471d2b commite152661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/executor/nodeAgg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ ExecAgg(Agg *node)
238238
tupValue=projInfo->pi_tupValue;
239239

240240
/* initially, set all the values to NULL */
241-
null_array=malloc(nagg);
242-
for (i=0;i<nagg;i++)
241+
null_array=malloc(tupType->natts);
242+
for (i=0;i<tupType->natts;i++)
243243
null_array[i]='n';
244244
oneTuple=heap_formtuple(tupType,tupValue,null_array);
245245
free(null_array);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp