diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 2000-07-06 18:22:45 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 2000-07-06 18:22:45 +0000 |
commit | 2a225ebf18afc373b1956c884e6beca47267f647 (patch) | |
tree | fd06c34a18c53bc9c0fe3f0065a0beaf39c32570 /src | |
parent | 8ecac94bb21570ee45245f440171b5ffb4efe68c (diff) | |
download | postgresql-2a225ebf18afc373b1956c884e6beca47267f647.tar.gz postgresql-2a225ebf18afc373b1956c884e6beca47267f647.zip |
Bugfix. If toasted tuple containted NULLs, DataFill() was handed
a wrong pointer causing the bitmap overwriting the tuple header.
Jan
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/heap/tuptoaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/heap/tuptoaster.c b/src/backend/access/heap/tuptoaster.c index 3221ed5b134..e9b071d0c0c 100644 --- a/src/backend/access/heap/tuptoaster.c +++ b/src/backend/access/heap/tuptoaster.c @@ -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, |