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

Commitf2dd89b

Browse files
committed
+ struct ConstaintDef - for constraints.
1 parent25aa0f8 commitf2dd89b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎src/include/nodes/parsenodes.h

Lines changed: 12 additions & 2 deletions
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.18 1997/08/20 01:12:38 vadim Exp $
9+
* $Id: parsenodes.h,v 1.19 1997/08/21 01:39:25 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -136,9 +136,19 @@ typedef struct CreateStmt {
136136
ArchTypearchiveType;/* archive mode (ARCH_NONE if none */
137137
intlocation;/* smgrid (-1 if none) */
138138
intarchiveLoc;/* smgrid (-1 if none) */
139-
List*check;/* list ofCHECK constr */
139+
List*constraints;/* list ofconstraints (ConstaintDef) */
140140
}CreateStmt;
141141

142+
typedefenumConstrType {
143+
CONSTR_NONE,CONSTR_CHECK/* type of constaints */
144+
}ConstrType;
145+
146+
typedefstructConstaintDef {
147+
ConstrTypetype;
148+
char*name;/* name */
149+
char*expr;/* */
150+
}ConstaintDef;
151+
142152
/* ----------------------
143153
*Create SEQUENCE Statement
144154
* ----------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp