diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-01 15:27:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-01 15:27:56 +0000 |
commit | 131f801d37b77d3633c07142010d1968c09e3fd8 (patch) | |
tree | 236b50e70f0ceb7bbc203c6c95c8b825069cb56d /src/backend/nodes/equalfuncs.c | |
parent | a3ec44a5d3206a50782ac0b4c7990cf1cdaf0092 (diff) |
First phase of applying Rod Taylor's pg_depend patch. This just adds
RESTRICT/CASCADE syntax to the DROP commands that need it, and propagates
the behavioral option through the parser to the routines that execute
drops. Doesn't do anything useful yet, but I figured I'd commit these
changes so I could get out of the parser area while working on the rest.
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 558abc00c7e..214493449b9 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -20,7 +20,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.138 2002/06/20 20:29:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.139 2002/07/01 15:27:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -942,6 +942,8 @@ _equalRemoveAggrStmt(RemoveAggrStmt *a, RemoveAggrStmt *b) return false; if (!equal(a->aggtype, b->aggtype)) return false; + if (a->behavior != b->behavior) + return false; return true; } @@ -953,6 +955,8 @@ _equalRemoveFuncStmt(RemoveFuncStmt *a, RemoveFuncStmt *b) return false; if (!equal(a->args, b->args)) return false; + if (a->behavior != b->behavior) + return false; return true; } @@ -964,6 +968,8 @@ _equalRemoveOperStmt(RemoveOperStmt *a, RemoveOperStmt *b) return false; if (!equal(a->args, b->args)) return false; + if (a->behavior != b->behavior) + return false; return true; } @@ -1229,6 +1235,8 @@ _equalDropPropertyStmt(DropPropertyStmt *a, DropPropertyStmt *b) return false; if (a->removeType != b->removeType) return false; + if (a->behavior != b->behavior) + return false; return true; } @@ -1255,6 +1263,8 @@ _equalDropPLangStmt(DropPLangStmt *a, DropPLangStmt *b) { if (!equalstr(a->plname, b->plname)) return false; + if (a->behavior != b->behavior) + return false; return true; } |