Commit 4213e44a authored by Bruce Momjian's avatar Bruce Momjian

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

parent 2d7023c8
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -725,7 +725,7 @@ _copyConst(Const *from)
* puts in the right values here. * puts in the right values here.
* ---------------- * ----------------
*/ */
if (cached_type != from->consttype) if (!from->constisnull && cached_type != from->consttype) {
{ {
HeapTuple typeTuple; HeapTuple typeTuple;
TypeTupleForm typeStruct; TypeTupleForm typeStruct;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment