summaryrefslogtreecommitdiff
path: root/src/include/access/heapam.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-01-09 22:01:00 +0000
committerBruce Momjian <bruce@momjian.us>2007-01-09 22:01:00 +0000
commit40f797be0302930a561bdd3d33b6af10c6d0b3fb (patch)
treed0c93fa3269270f462622c4171d9a644025caccc /src/include/access/heapam.h
parentca9213e8faea77b05ebb902da68f4edf15ba3bf9 (diff)
downloadpostgresql-40f797be0302930a561bdd3d33b6af10c6d0b3fb.tar.gz
Enable another five tuple status bits by using the high bits of the
nattr field, and rename the field. Heikki Linnakangas
Diffstat (limited to 'src/include/access/heapam.h')
-rw-r--r--src/include/access/heapam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 49a874244d..eb78010906 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.118 2007/01/05 22:19:51 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.119 2007/01/09 22:01:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -98,7 +98,7 @@ extern Datum fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc,
( \
((attnum) > 0) ? \
( \
- ((attnum) > (int) (tup)->t_data->t_natts) ? \
+ ((attnum) > (int) HeapTupleHeaderGetNatts((tup)->t_data)) ? \
( \
(((isnull) != NULL) ? (*(isnull) = true) : (dummyret)NULL), \
(Datum)NULL \