]> granicus.if.org Git - postgresql/commit
Fixes:
authorMarc G. Fournier <scrappy@hub.org>
Thu, 24 Oct 1996 06:32:01 +0000 (06:32 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 24 Oct 1996 06:32:01 +0000 (06:32 +0000)
commite152661200c1b3e6a834c918ba64681dde404440
treed06fd4c9d511760fff277c683717b915d5da12ee
parentc471d2bdebcad002a7f867b73811b803396b793e
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 so
null_array should contain tupType->natts elements (tupType->natts > nagg in
your case).

Patch follows and it's very simple.

VAdim
src/backend/executor/nodeAgg.c