aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/syscache.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-09-12 04:09:08 +0000
committerBruce Momjian <bruce@momjian.us>1997-09-12 04:09:08 +0000
commit1ea01720d53095641205753e766180508ee4d5ad (patch)
treec62d9d2be8a531e182d89bb0cef172a80d43c00c /src/backend/utils/cache/syscache.c
parent6e04b4b20f73b2512fc29353ca706bdb635d7e47 (diff)
downloadpostgresql-1ea01720d53095641205753e766180508ee4d5ad.tar.gz
postgresql-1ea01720d53095641205753e766180508ee4d5ad.zip
heapattr functions now return a Datum, not char *.
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r--src/backend/utils/cache/syscache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c
index 8a07d88c32f..2a2fc2544ef 100644
--- a/src/backend/utils/cache/syscache.c
+++ b/src/backend/utils/cache/syscache.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.7 1997/09/08 21:48:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.8 1997/09/12 04:08:35 momjian Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
@@ -494,7 +494,7 @@ SearchSysCacheGetAttribute(int cacheId,
int32 attributeLength,
attributeByValue;
bool isNull;
- char *attributeValue;
+ Datum attributeValue;
void *returnValue;
tp = SearchSysCacheTuple(cacheId, key1, key2, key3, key4);
@@ -562,7 +562,7 @@ SearchSysCacheGetAttribute(int cacheId,
: attributeLength; /* fixed length */
tmp = (char *) palloc(size);
- memmove(tmp, attributeValue, size);
+ memmove(tmp, (void *)attributeValue, size);
returnValue = (void *) tmp;
}