From a1ee06625c268a10ce572e72af07ac082626eeb0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 20 Sep 2001 14:20:28 +0000 Subject: Provide tunable knob for x = NULL -> x IS NULL transformation, default to off. --- src/include/parser/gramparse.h | 3 ++- src/include/parser/parse_expr.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include/parser') diff --git a/src/include/parser/gramparse.h b/src/include/parser/gramparse.h index 88c00ce9f37..ad045dd4b60 100644 --- a/src/include/parser/gramparse.h +++ b/src/include/parser/gramparse.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: gramparse.h,v 1.15 2001/02/09 03:26:27 tgl Exp $ + * $Id: gramparse.h,v 1.16 2001/09/20 14:20:28 petere Exp $ * *------------------------------------------------------------------------- */ @@ -29,5 +29,6 @@ extern Oid param_type(int t); extern int yyparse(void); extern char *xlateSqlFunc(char *name); extern char *xlateSqlType(char *name); +bool exprIsNullConstant(Node *arg); #endif /* GRAMPARSE_H */ diff --git a/src/include/parser/parse_expr.h b/src/include/parser/parse_expr.h index 4dfc2367fd5..c51bf7cc044 100644 --- a/src/include/parser/parse_expr.h +++ b/src/include/parser/parse_expr.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_expr.h,v 1.21 2001/01/24 19:43:27 momjian Exp $ + * $Id: parse_expr.h,v 1.22 2001/09/20 14:20:28 petere Exp $ * *------------------------------------------------------------------------- */ @@ -20,6 +20,7 @@ #define EXPR_RELATION_FIRST 2 extern int max_expr_depth; +extern bool Transform_null_equals; extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence); extern Oid exprType(Node *expr); -- cgit v1.2.3