summaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorPeter Eisentraut2001-09-20 14:20:28 +0000
committerPeter Eisentraut2001-09-20 14:20:28 +0000
commita1ee06625c268a10ce572e72af07ac082626eeb0 (patch)
treed7baf560585c0ccd83ae0e4d374c62bf08e27103 /src/include/parser
parentfd5e95971e7a2bc32fcb7f2b39798c51648a225f (diff)
Provide tunable knob for x = NULL -> x IS NULL transformation, default to off.
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/gramparse.h3
-rw-r--r--src/include/parser/parse_expr.h3
2 files changed, 4 insertions, 2 deletions
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);