File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* 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 $
13
13
*
14
14
* DESCRIPTION
15
15
* These routines take the parse tree and pick out the
@@ -728,7 +728,7 @@ CreateCast(CreateCastStmt *stmt)
728
728
}
729
729
730
730
myself .classId = get_system_catalog_relid (CastRelationName );
731
- myself .objectId = tuple -> t_data -> t_oid ;
731
+ myself .objectId = HeapTupleGetOid ( tuple ) ;
732
732
myself .objectSubId = 0 ;
733
733
734
734
/* dependency on source type */
@@ -809,7 +809,7 @@ DropCast(DropCastStmt *stmt)
809
809
* Do the deletion
810
810
*/
811
811
object .classId = get_system_catalog_relid (CastRelationName );
812
- object .objectId = tuple -> t_data -> t_oid ;
812
+ object .objectId = HeapTupleGetOid ( tuple ) ;
813
813
object .objectSubId = 0 ;
814
814
815
815
performDeletion (& object , stmt -> behavior );
You can’t perform that action at this time.
0 commit comments