Skip to content

Commit dcbacde

Browse files
committed
Patch problems caused by code drift since OID patch creation.
1 parent e36f9cd commit dcbacde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/commands/functioncmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.10 2002/07/20 05:16:57 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.11 2002/07/20 05:37:45 momjian Exp $
1313
*
1414
* DESCRIPTION
1515
* These routines take the parse tree and pick out the
@@ -728,7 +728,7 @@ CreateCast(CreateCastStmt *stmt)
728728
}
729729

730730
myself.classId = get_system_catalog_relid(CastRelationName);
731-
myself.objectId = tuple->t_data->t_oid;
731+
myself.objectId = HeapTupleGetOid(tuple);
732732
myself.objectSubId = 0;
733733

734734
/* dependency on source type */
@@ -809,7 +809,7 @@ DropCast(DropCastStmt *stmt)
809809
* Do the deletion
810810
*/
811811
object.classId = get_system_catalog_relid(CastRelationName);
812-
object.objectId = tuple->t_data->t_oid;
812+
object.objectId = HeapTupleGetOid(tuple);
813813
object.objectSubId = 0;
814814

815815
performDeletion(&object, stmt->behavior);

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