]> granicus.if.org Git - postgresql/commitdiff
Update outdated comment. HeapTupleHeader.t_natts field doesn't exist anymore.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 Mar 2012 06:07:56 +0000 (08:07 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 Mar 2012 06:07:56 +0000 (08:07 +0200)
Kevin Grittner

src/backend/access/common/heaptuple.c

index 08d2b21c2318de0946710bf72506fca9569b0a34..034dfe574f1b9be3dff89802365c5378da8c6f63 100644 (file)
@@ -871,7 +871,8 @@ heap_modifytuple(HeapTuple tuple,
  *             the inverse of heap_form_tuple.
  *
  *             Storage for the values/isnull arrays is provided by the caller;
- *             it should be sized according to tupleDesc->natts not tuple->t_natts.
+ *             it should be sized according to tupleDesc->natts not
+ *             HeapTupleHeaderGetNatts(tuple->t_data).
  *
  *             Note that for pass-by-reference datatypes, the pointer placed
  *             in the Datum will point into the given tuple.
@@ -978,7 +979,8 @@ heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc,
  *             the inverse of heap_formtuple.
  *
  *             Storage for the values/nulls arrays is provided by the caller;
- *             it should be sized according to tupleDesc->natts not tuple->t_natts.
+ *             it should be sized according to tupleDesc->natts not
+ *             HeapTupleHeaderGetNatts(tuple->t_data).
  *
  *             Note that for pass-by-reference datatypes, the pointer placed
  *             in the Datum will point into the given tuple.