From 6b603e67dcd1a93a56f3c6b5f36fd8f08e2ee35d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 15 Nov 2002 02:50:21 +0000 Subject: Add DOMAIN check constraints. Rod Taylor --- src/include/nodes/parsenodes.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/include/nodes/parsenodes.h') diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 962452992e8..1198a81de5e 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.213 2002/11/13 00:44:09 momjian Exp $ + * $Id: parsenodes.h,v 1.214 2002/11/15 02:50:12 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -285,9 +285,26 @@ typedef struct ConstraintTest Node *arg; /* input expression */ ConstraintTestType testtype; /* test type */ char *name; /* name of constraint (for error msgs) */ + char *domname; /* name of domain (for error messages) */ Node *check_expr; /* for CHECK test, a boolean expression */ } ConstraintTest; +/* + * Placeholder node for the value to be processed by a domains + * check constraint. + */ +typedef struct DomainConstraintValue +{ + NodeTag type; +} DomainConstraintValue; + +typedef struct ConstraintTestValue +{ + NodeTag type; + Oid typeId; + int32 typeMod; +} ConstraintTestValue; + /* * ColumnDef - column definition (used in various creates) * -- cgit v1.2.3