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:12 +0000 (18:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Apr 2004 18:46:12 +0000 (18:46 +0000)
Per example from Jiang Wei.

src/backend/executor/execJunk.c

index e970086d522ddd301e095793c3ac9a334b98c947..0411e2e553d57fb6576cb84bf15de4afef8105c8 100644 (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.