mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
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
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.125 2000/10/07 00:58:16 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.126 2000/10/18 16:16:04 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1949,8 +1949,8 @@ _copyDropStmt(DropStmt *from)
|
||||
{
|
||||
DropStmt *newnode = makeNode(DropStmt);
|
||||
|
||||
Node_Copy(from, newnode, relNames);
|
||||
newnode->sequence = from->sequence;
|
||||
Node_Copy(from, newnode, names);
|
||||
newnode->removeType = from->removeType;
|
||||
|
||||
return newnode;
|
||||
}
|
||||
@ -2071,17 +2071,6 @@ _copyRemoveOperStmt(RemoveOperStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static RemoveStmt *
|
||||
_copyRemoveStmt(RemoveStmt *from)
|
||||
{
|
||||
RemoveStmt *newnode = makeNode(RemoveStmt);
|
||||
|
||||
newnode->removeType = from->removeType;
|
||||
newnode->name = pstrdup(from->name);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static RenameStmt *
|
||||
_copyRenameStmt(RenameStmt *from)
|
||||
{
|
||||
@ -2782,9 +2771,6 @@ copyObject(void *from)
|
||||
case T_RemoveOperStmt:
|
||||
retval = _copyRemoveOperStmt(from);
|
||||
break;
|
||||
case T_RemoveStmt:
|
||||
retval = _copyRemoveStmt(from);
|
||||
break;
|
||||
case T_RenameStmt:
|
||||
retval = _copyRenameStmt(from);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user