|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $PostgreSQL: pgsql/src/backend/commands/opclasscmds.c,v 1.36 2005/08/22 17:38:20 tgl Exp $ |
| 12 | + * $PostgreSQL: pgsql/src/backend/commands/opclasscmds.c,v 1.37 2005/08/23 01:41:30 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -926,6 +926,7 @@ AlterOpClassOwner(List *name, const char *access_method, Oid newOwnerId)
|
926 | 926 | errmsg("operator class \"%s\" does not exist for access method \"%s\"",
|
927 | 927 | opcname,access_method)));
|
928 | 928 |
|
| 929 | +opcOid=HeapTupleGetOid(tup); |
929 | 930 | }
|
930 | 931 | else
|
931 | 932 | {
|
@@ -981,7 +982,7 @@ AlterOpClassOwner(List *name, const char *access_method, Oid newOwnerId)
|
981 | 982 | CatalogUpdateIndexes(rel,tup);
|
982 | 983 |
|
983 | 984 | /* Update owner dependency reference */
|
984 |
| -changeDependencyOnOwner(OperatorClassRelationId,amOid,newOwnerId); |
| 985 | +changeDependencyOnOwner(OperatorClassRelationId,opcOid,newOwnerId); |
985 | 986 | }
|
986 | 987 |
|
987 | 988 | heap_close(rel,NoLock);
|
|