Still another place to make the world safe for zero-column tables.

Per example from Jiang Wei.
This commit is contained in:
Tom Lane 2004-04-07 18:46:12 +00:00
parent 75688a27d2
commit 0bb21d391c

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/execJunk.c,v 1.38 2004/01/07 18:56:26 neilc Exp $
* $PostgreSQL: pgsql/src/backend/executor/execJunk.c,v 1.39 2004/04/07 18:46:12 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -263,12 +263,6 @@ ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
cleanLength = junkfilter->jf_cleanLength;
cleanMap = junkfilter->jf_cleanMap;
/*
* Handle the trivial case first.
*/
if (cleanLength == 0)
return NULL;
/*
* Create the arrays that will hold the attribute values and the null
* information for the new "clean" tuple.