OSDN Git Service

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 e970086..0411e2e 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 $
  *
  *-------------------------------------------------------------------------
  */
@@ -264,12 +264,6 @@ ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
        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.
         *