1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

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:20 +00:00
parent 2fde466135
commit d9bbf47aaa

View File

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