Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55dc7fa

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 casesinvolving built-in (pinned) types and so no actual dependency entryexists to be removed.
1 parente84c71b commit55dc7fa

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)

[8]ページ先頭

©2009-2025 Movatter.jp