]> granicus.if.org Git - postgresql/commitdiff
Fix for select null, "fail" from pg_am from Patrick van Kleef
authorBruce Momjian <bruce@momjian.us>
Fri, 12 Sep 1997 22:07:59 +0000 (22:07 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 12 Sep 1997 22:07:59 +0000 (22:07 +0000)
src/backend/nodes/copyfuncs.c

index ef6c1a1828b507de017b7294a268bf5ebbf4c454..19515ac0268fa4e2bdffd7ea68b47299b6a0aa0c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.10 1997/09/08 21:43:57 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.11 1997/09/12 22:07:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -725,7 +725,7 @@ _copyConst(Const *from)
         *      puts in the right values here.
         * ----------------
         */
-       if (cached_type != from->consttype)
+       if (!from->constisnull && cached_type != from->consttype) {
        {
                HeapTuple       typeTuple;
                TypeTupleForm typeStruct;