Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7f8b8b9

Browse files
committed
Fix for SELECT NULL.
1 parent c90c058 commit 7f8b8b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/executor/execTuples.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.3 1996/11/08 05:56:01 momjian Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.4 1996/12/07 04:37:06 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -129,6 +129,7 @@
129129
#include "utils/lsyscache.h"
130130
#include "storage/bufmgr.h"
131131
#include "parser/catalog_utils.h"
132+
#include "catalog/pg_type.h"
132133

133134
/* ----------------------------------------------------------------
134135
* tuple table create/delete functions
@@ -938,7 +939,7 @@ ExecTypeFromTL(List *targetList)
938939
TupleDescInitEntry(typeInfo,
939940
resdom->resno,
940941
resdom->resname,
941-
get_id_typname(restype),
942+
get_id_typname(restype?restype:UNKNOWNOID),
942943
0,
943944
false);
944945

0 commit comments

Comments
 (0)