From c0941ab7f02768694991bc54d59b0d2ba9d7ea89 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 7 Dec 1996 04:38:11 +0000
Subject: [PATCH] Remove Dan's fix of SELECT NULL to fix INSERT NULL.

---
 src/backend/parser/parse_query.c | 6 ++----
 src/backend/parser/parser.c      | 4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/backend/parser/parse_query.c b/src/backend/parser/parse_query.c
index 30028c3f81d..d3fffc1b24b 100644
--- a/src/backend/parser/parse_query.c
+++ b/src/backend/parser/parse_query.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.10 1996/11/30 18:06:34 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.11 1996/12/07 04:38:10 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -654,9 +654,7 @@ make_const(Value *value)
 		elog(NOTICE,"unknown type : %d\n", nodeTag(value));
 
 	    /* null const */
-	    /* if we don't set a type here, things will break.      */
-	    /* so set it to type 'unknown'.                         */
-	    con = makeConst(UNKNOWNOID, 0, (Datum)NULL, TRUE, 0, FALSE);
+	    con = makeConst(0, 0, (Datum)NULL, TRUE, 0, FALSE);
 	    return con;
 	}
     }
diff --git a/src/backend/parser/parser.c b/src/backend/parser/parser.c
index b93fe94ec4a..728b326febd 100644
--- a/src/backend/parser/parser.c
+++ b/src/backend/parser/parser.c
@@ -1,12 +1,12 @@
 /*-------------------------------------------------------------------------
  *
- * ylib.c--
+ * parser.c--
  *
  * Copyright (c) 1994, Regents of the University of California
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.14 1996/11/30 18:06:37 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.15 1996/12/07 04:38:11 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
-- 
GitLab