Skip to content

Commit 55dc7fa

Browse files
committed
Fix silly thinko in ALTER COLUMN TYPE. Check for finding expected
dependency was looking at wrong columns and so would always fail. Was not exposed by regression tests because we are only testing cases involving built-in (pinned) types and so no actual dependency entry exists to be removed.
1 parent e84c71b commit 55dc7fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/commands/tablecmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.123 2004/08/01 20:30:48 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.124 2004/08/04 20:53:53 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -4888,8 +4888,8 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
48884888
if (foundDep->deptype != DEPENDENCY_NORMAL)
48894889
elog(ERROR, "found unexpected dependency type '%c'",
48904890
foundDep->deptype);
4891-
if (foundDep->classid != RelOid_pg_type ||
4892-
foundDep->objid != attTup->atttypid)
4891+
if (foundDep->refclassid != RelOid_pg_type ||
4892+
foundDep->refobjid != attTup->atttypid)
48934893
elog(ERROR, "found unexpected dependency for column");
48944894

48954895
simple_heap_delete(depRel, &depTup->t_self);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy