Still another place to make the world safe for zero-column tables.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Apr 2004 18:46:20 +0000 (18:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Apr 2004 18:46:20 +0000 (18:46 +0000)
Per example from Jiang Wei.

src/backend/executor/execJunk.c

index 654fc7811a81742836101eba517c0f57a6e03eba..e521bb8903e8ac81c20e591dd98fcaf33992f105 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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;
    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
     * information for the new "clean" tuple.