summaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_query.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-19 07:24:11 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-19 07:24:11 +0000
commit20288400f3ad4a29fe6fa4623c35314c0f8eee05 (patch)
tree5ccfb3b3d2b847fc30d39d9bd58b33ba195db55b /src/backend/parser/parse_query.c
parent83adddfcc35b407e3d025f02e7d0149e5e2b9a76 (diff)
Fixes:
I have written some patches which add support for NULLs to Postgres95. In fact support for NULLs was already present in postgres, but it had been disabled because not completely debugged, I believe. My patches simply add some checks here and there. To enable the new code you must add -DNULL_PATCH to CFLAGS in Makefile.global. After recompiling you can do things like: insert into a (x, y) values (1, NULL); update a set x = NULL where x = 0; You can't still use a "where x=NULL" clause, you must use ISNULL instead. This could probably be an easy fix to do. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
Diffstat (limited to 'src/backend/parser/parse_query.c')
-rw-r--r--src/backend/parser/parse_query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/parser/parse_query.c b/src/backend/parser/parse_query.c
index 37c955017ef..974238aed47 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.1.1.1 1996/07/09 06:21:40 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.2 1996/07/19 07:24:09 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -617,7 +617,11 @@ make_const(Value *value)
/* null const */
con = makeConst(0, 0, (Datum)NULL, TRUE, 0, FALSE);
+#ifdef NULL_PATCH
+ return con;
+#else
return NULL /*con*/;
+#endif
}
}