Fix for select null, "fail" from pg_am from Patrick van Kleef

This commit is contained in:
Bruce Momjian 1997-09-12 22:07:59 +00:00
parent 2d7023c8fb
commit 4213e44a0b
1 changed files with 2 additions and 2 deletions

View 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;