diff options
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index c0933f8ae7f..7f0cbd6ac2a 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.187 2002/07/16 22:12:20 tgl Exp $ + * $Id: parsenodes.h,v 1.188 2002/07/18 04:41:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -174,6 +174,25 @@ typedef struct A_Const } A_Const; /* + * BetweenExpr - an SQL99 BETWEEN expression + */ + +typedef struct BetweenExpr +{ + NodeTag type; + Node *expr; /* Expression to check */ + Node *lexpr; /* First bound */ + Node *rexpr; /* Second bound */ + bool not; /* Do we want inverse? */ + bool symmetric; /* True if SYMMETRIC, false if ASYMMETRIC */ + Oid typeId; /* Information abotu common type */ + int16 typeLen; + bool typeByVal; + Expr *gthan; + Expr *lthan; +} BetweenExpr; + +/* * TypeCast - a CAST expression * * NOTE: for mostly historical reasons, A_Const parsenodes contain |