]> granicus.if.org Git - postgresql/commitdiff
Bugfix. If toasted tuple containted NULLs, DataFill() was handed
authorJan Wieck <JanWieck@Yahoo.com>
Thu, 6 Jul 2000 18:22:45 +0000 (18:22 +0000)
committerJan Wieck <JanWieck@Yahoo.com>
Thu, 6 Jul 2000 18:22:45 +0000 (18:22 +0000)
a wrong pointer causing the bitmap overwriting the tuple header.

Jan

src/backend/access/heap/tuptoaster.c

index 3221ed5b134afc493dd7701622a04a05a9b9397b..e9b071d0c0c9a0ff86ed105a1b966434dc8384eb 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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
@@ -619,7 +619,7 @@ toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup)
                                toast_values,
                                toast_nulls,
                                &(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,