1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-03 09:13:20 +03:00

Implement CASE expression.

This commit is contained in:
Thomas G. Lockhart
1998-12-04 15:34:49 +00:00
parent 19740e2fff
commit bedd04a551
17 changed files with 779 additions and 110 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodes.h,v 1.31 1998/10/01 02:04:01 tgl Exp $
* $Id: nodes.h,v 1.32 1998/12/04 15:34:44 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -213,11 +213,13 @@ typedef enum NodeTag
T_SortClause,
T_GroupClause,
T_SubSelect,
T_JoinUsing
T_JoinUsing,
T_CaseExpr,
T_CaseWhen
} NodeTag;
/*
* The first field of a node of any type is gauranteed to be the NodeTag.
* The first field of a node of any type is guaranteed to be the NodeTag.
* Hence the type of any node can be gotten by casting it to Node. Declaring
* a variable to be of Node * (instead of void *) can also facilitate
* debugging.