Skip to content

Commit c0941ab

Browse files
committed
Remove Dan's fix of SELECT NULL to fix INSERT NULL.
1 parent 7f8b8b9 commit c0941ab

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/backend/parser/parse_query.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.10 1996/11/30 18:06:34 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.11 1996/12/07 04:38:10 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -654,9 +654,7 @@ make_const(Value *value)
654654
elog(NOTICE,"unknown type : %d\n", nodeTag(value));
655655

656656
/* null const */
657-
/* if we don't set a type here, things will break. */
658-
/* so set it to type 'unknown'. */
659-
con = makeConst(UNKNOWNOID, 0, (Datum)NULL, TRUE, 0, FALSE);
657+
con = makeConst(0, 0, (Datum)NULL, TRUE, 0, FALSE);
660658
return con;
661659
}
662660
}

src/backend/parser/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*-------------------------------------------------------------------------
22
*
3-
* ylib.c--
3+
* parser.c--
44
*
55
* Copyright (c) 1994, Regents of the University of California
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.14 1996/11/30 18:06:37 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.15 1996/12/07 04:38:11 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy