diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index ef6c1a1828b507de017b7294a268bf5ebbf4c454..19515ac0268fa4e2bdffd7ea68b47299b6a0aa0c 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -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;