1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Repair bug noticed by Deepak Bhole: a shell type should have a dependency

on its namespace, so that it will go away if the schema is dropped.
This commit is contained in:
Tom Lane
2003-01-08 21:40:39 +00:00
parent fe7f8f2b91
commit 51d2e3bd6e
3 changed files with 71 additions and 43 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.27 2003/01/06 00:31:44 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.28 2003/01/08 21:40:39 tgl Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
@@ -1012,12 +1012,12 @@ AlterDomainDefault(List *names, Node *defaultRaw)
GenerateTypeDependencies(typTup->typnamespace,
domainoid,
typTup->typrelid,
InvalidOid,
0, /* relation kind is n/a */
typTup->typinput,
typTup->typoutput,
typTup->typelem,
typTup->typbasetype,
nodeToString(defaultExpr),
defaultExpr,
true); /* Rebuild is true */
/* Clean up */