diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/postgres.h | 4 | ||||
-rw-r--r-- | src/include/utils/rel.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index 0beb504d388..396c3c262bf 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -6,7 +6,7 @@ * * Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.29 1999/11/04 08:01:07 inoue Exp $ + * $Id: postgres.h,v 1.30 1999/11/07 23:08:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -115,6 +115,8 @@ typedef union nameData } NameData; typedef NameData *Name; +#define NameStr(name) ((name).data) + /* ---------------------------------------------------------------- * Section 3: TransactionId and CommandId * ---------------------------------------------------------------- diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 28ea74c5e2b..b22ad294cea 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: rel.h,v 1.28 1999/11/04 08:01:09 inoue Exp $ + * $Id: rel.h,v 1.29 1999/11/07 23:08:33 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -176,7 +176,7 @@ typedef Relation *RelationPtr; * * Returns a Relation Name */ -#define RelationGetRelationName(relation) (&(relation)->rd_rel->relname) +#define RelationGetRelationName(relation) (NameStr((relation)->rd_rel->relname)) /* * RelationGetNumberOfAttributes |