Bugfix. If toasted tuple containted NULLs, DataFill() was handed

a wrong pointer causing the bitmap overwriting the tuple header.

Jan
This commit is contained in:
Jan Wieck 2000-07-06 18:22:45 +00:00
parent 8ecac94bb2
commit 2a225ebf18

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.5 2000/07/03 23:09:19 wieck Exp $ * $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.6 2000/07/06 18:22:45 wieck Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
@ -619,7 +619,7 @@ toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup)
toast_values, toast_values,
toast_nulls, toast_nulls,
&(newtup->t_data->t_infomask), &(newtup->t_data->t_infomask),
HeapTupleNoNulls(newtup) ? NULL : new_data); has_nulls ? newtup->t_data->t_bits : NULL);
/* ---------- /* ----------
* In the case we modified a previously modified tuple again, * In the case we modified a previously modified tuple again,