From 759fba48734fdb93094ed6fe6b0d0c4d533fd0ca Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 16 Jan 2000 20:05:00 +0000 Subject: Included all yacc and lex files into the distribution. --- src/include/nodes/nodes.h | 4 ++-- src/include/nodes/parsenodes.h | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'src/include/nodes') diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index e66d6c4dfb..219bcbe6f6 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: nodes.h,v 1.60 2000/01/09 00:26:42 tgl Exp $ + * $Id: nodes.h,v 1.61 2000/01/16 20:04:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -145,7 +145,7 @@ typedef enum NodeTag T_DeleteStmt, T_UpdateStmt, T_SelectStmt, - T_AddAttrStmt, + T_AlterTableStmt, T_AggregateStmt, T_ChangeACLStmt, T_ClosePortalStmt, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 0b2a2a0e93..53c55be4db 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.93 2000/01/14 22:11:38 petere Exp $ + * $Id: parsenodes.h,v 1.94 2000/01/16 20:04:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -84,16 +84,20 @@ typedef struct Query *****************************************************************************/ /* ---------------------- - * Add Column Statement + * Alter Table * ---------------------- */ -typedef struct AddAttrStmt +/* The fields are used in different ways by the different variants of this command */ +typedef struct AlterTableStmt { NodeTag type; - char *relname; /* the relation to add attr */ - bool inh; /* add recursively to children? */ - Node *colDef; /* the attribute definition */ -} AddAttrStmt; + char subtype; /* A = add, T = alter, D = drop, C = add constr, X = drop constr */ + char *relname; /* table to work on */ + bool inh; /* recursively on children? */ + char *name; /* column or constraint name to act on */ + Node *def; /* definition of new column or constraint */ + int behavior; /* CASCADE or RESTRICT drop behavior */ +} AlterTableStmt; /* ---------------------- * Change ACL Statement -- cgit v1.2.1