diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-18 16:16:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-18 16:16:18 +0000 |
commit | 73677dd92f35b4c24b6c00b049aa9b0a66fdb702 (patch) | |
tree | 83001516af1867e74807bfb40392d8adbf869f46 /src/backend/nodes/equalfuncs.c | |
parent | 60dcf13ea10a5ab6fa61e8509df36b5823a15857 (diff) |
The following patch was sent to the patches list:
This patch forces the use of 'DROP VIEW' to destroy views.
It also changes the syntax of DROP VIEW to
DROP VIEW v1, v2, ...
to match the syntax of DROP TABLE.
Some error messages were changed so this patch also includes changes to the
appropriate expected/*.out files.
Doc changes for 'DROP TABLE" and 'DROP VIEW' are included.
--
Mark Hollomon
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index d5b2ff4607e..372f22499d5 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.76 2000/10/07 00:58:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.77 2000/10/18 16:16:04 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -850,9 +850,9 @@ _equalDefineStmt(DefineStmt *a, DefineStmt *b) static bool _equalDropStmt(DropStmt *a, DropStmt *b) { - if (!equal(a->relNames, b->relNames)) + if (!equal(a->names, b->names)) return false; - if (a->sequence != b->sequence) + if (a->removeType != b->removeType) return false; return true; @@ -989,16 +989,6 @@ _equalRemoveOperStmt(RemoveOperStmt *a, RemoveOperStmt *b) return true; } -static bool -_equalRemoveStmt(RemoveStmt *a, RemoveStmt *b) -{ - if (a->removeType != b->removeType) - return false; - if (!equalstr(a->name, b->name)) - return false; - - return true; -} static bool _equalRenameStmt(RenameStmt *a, RenameStmt *b) @@ -1959,9 +1949,6 @@ equal(void *a, void *b) case T_RemoveOperStmt: retval = _equalRemoveOperStmt(a, b); break; - case T_RemoveStmt: - retval = _equalRemoveStmt(a, b); - break; case T_RenameStmt: retval = _equalRenameStmt(a, b); break; |