Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dd090f

Browse files
committed
CREATE/DROP TRIGGER statement nodes
1 parentbcf03a7 commit8dd090f

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

‎src/include/nodes/nodes.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nodes.h,v 1.9 1997/05/22 00:15:58 scrappy Exp $
9+
* $Id: nodes.h,v 1.10 1997/08/31 11:43:08 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -183,6 +183,8 @@ typedef enum NodeTag {
183183
T_VariableSetStmt,
184184
T_VariableShowStmt,
185185
T_VariableResetStmt,
186+
T_CreateTrigStmt,
187+
T_DropTrigStmt,
186188

187189
T_A_Expr=700,
188190
T_Attr,

‎src/include/nodes/parsenodes.h

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parsenodes.h,v 1.20 1997/08/22 04:05:27 vadim Exp $
9+
* $Id: parsenodes.h,v 1.21 1997/08/31 11:43:09 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -149,6 +149,31 @@ typedef struct ConstraintDef {
149149
void*def;/* definition */
150150
}ConstraintDef;
151151

152+
/* ----------------------
153+
*Create/Drop TRIGGER Statements
154+
* ----------------------
155+
*/
156+
157+
typedefstructCreateTrigStmt {
158+
NodeTagtype;
159+
char*trigname;/* TRIGGER' name */
160+
char*relname;/* triggered relation */
161+
char*funcname;/* function to call (or NULL) */
162+
List*args;/* list of (T_String) Values or NULL */
163+
boolbefore;/* BEFORE/AFTER */
164+
boolrow;/* ROW/STATEMENT */
165+
char*lang;/* NULL (which means Clanguage) */
166+
char*text;/* AS 'text' */
167+
List*upattr;/* UPDATE OF a, b,... (NI) or NULL */
168+
char*when;/* WHEN 'a > 10 ...' (NI) or NULL */
169+
}CreateTrigStmt;
170+
171+
typedefstructDropTrigStmt {
172+
NodeTagtype;
173+
char*trigname;/* TRIGGER' name */
174+
char*relname;/* triggered relation */
175+
}DropTrigStmt;
176+
152177
/* ----------------------
153178
*Create SEQUENCE Statement
154179
* ----------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp