mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix for select null, "fail" from pg_am from Patrick van Kleef
This commit is contained in:
parent
2d7023c8fb
commit
4213e44a0b
@ -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)
|
|||||||
* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user