mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Ooops ... 6.5 coding wasn't quite right anymore. Should learn
never to commit without running regress tests...
This commit is contained in:
parent
b021e9a130
commit
c60ecd8f8c
@ -11,7 +11,7 @@
|
|||||||
* SQL aggregates. (Do not expect POSTQUEL semantics.) -- ay 2/95
|
* SQL aggregates. (Do not expect POSTQUEL semantics.) -- ay 2/95
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAgg.c,v 1.58 1999/10/30 01:18:16 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAgg.c,v 1.59 1999/10/30 02:35:14 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -434,11 +434,15 @@ ExecAgg(Agg *node)
|
|||||||
|
|
||||||
tupType = aggstate->csstate.css_ScanTupleSlot->ttc_tupleDescriptor;
|
tupType = aggstate->csstate.css_ScanTupleSlot->ttc_tupleDescriptor;
|
||||||
tupValue = projInfo->pi_tupValue;
|
tupValue = projInfo->pi_tupValue;
|
||||||
null_array = (char *) palloc(sizeof(char) * tupType->natts);
|
/* watch out for null input tuples, though... */
|
||||||
for (attnum = 0; attnum < tupType->natts; attnum++)
|
if (tupType && tupValue)
|
||||||
null_array[attnum] = 'n';
|
{
|
||||||
inputTuple = heap_formtuple(tupType, tupValue, null_array);
|
null_array = (char *) palloc(sizeof(char)*tupType->natts);
|
||||||
pfree(null_array);
|
for (attnum = 0; attnum < tupType->natts; attnum++)
|
||||||
|
null_array[attnum] = 'n';
|
||||||
|
inputTuple = heap_formtuple(tupType, tupValue, null_array);
|
||||||
|
pfree(null_array);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user