summaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-02-06 20:18:01 +0000
committerBruce Momjian <bruce@momjian.us>1998-02-06 20:18:01 +0000
commitec9d5d71ec4cec1f92292fd2dcfa4a6d4093a05d (patch)
treed8bcf0c12b1f19b58164c01a132fb2eb645fba26 /src/backend/access/common/heaptuple.c
parent6009d70eab2ad5039ef5b9519fa5a63f01ab5f0c (diff)
Update now that attcacheoff initial value is -1 always.
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r--src/backend/access/common/heaptuple.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index 2ab5673787d..5c905275f39 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.34 1998/02/05 15:08:49 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.35 1998/02/06 20:17:49 momjian Exp $
*
* NOTES
* The old interface functions have been converted to macros
@@ -428,7 +428,7 @@ nocachegetattr(HeapTuple tup,
#if IN_MACRO
/* This is handled in the macro */
- if (att[attnum]->attcacheoff > 0)
+ if (att[attnum]->attcacheoff != -1)
{
return (Datum)
fetchatt(&(att[attnum]),
@@ -512,7 +512,7 @@ nocachegetattr(HeapTuple tup,
*/
if (!slow)
{
- if (att[attnum]->attcacheoff > 0)
+ if (att[attnum]->attcacheoff != -1)
{
return (Datum)fetchatt(&(att[attnum]),
tp + att[attnum]->attcacheoff);
@@ -650,7 +650,7 @@ nocachegetattr(HeapTuple tup,
}
/* If we know the next offset, we can skip the rest */
- if (usecache && att[i]->attcacheoff > 0)
+ if (usecache && att[i]->attcacheoff != -1)
off = att[i]->attcacheoff;
else
{