diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-16 02:30:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-16 02:30:39 +0000 |
commit | 51972a9d5d068dd34b24ff4923981ffb90e5cc2d (patch) | |
tree | c68fddbb3eaafbd332e84afbafe3c171f6372d4e /src/include/nodes/parsenodes.h | |
parent | de25638d2fbe9e56ecfc60a7dda8a0c56028317a (diff) | |
download | postgresql-51972a9d5d068dd34b24ff4923981ffb90e5cc2d.tar.gz postgresql-51972a9d5d068dd34b24ff4923981ffb90e5cc2d.zip |
COALESCE() and NULLIF() are now first-class expressions, not macros
that turn into CASE expressions. They evaluate their arguments at most
once. Patch by Kris Jurka, review and (very light) editorializing by me.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 9474bc6490b..381c11c3893 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.230 2003/02/13 05:20:03 momjian Exp $ + * $Id: parsenodes.h,v 1.231 2003/02/16 02:30:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -174,6 +174,7 @@ typedef enum A_Expr_Kind AEXPR_OR, AEXPR_NOT, AEXPR_DISTINCT, /* IS DISTINCT FROM - name must be "=" */ + AEXPR_NULLIF, /* NULLIF - name must be "=" */ AEXPR_OF /* IS (not) OF - name must be "=" or "!=" */ } A_Expr_Kind; |