From 2f0f7b4bce13e68394543728801ef011fd82fac6 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 17 Apr 2008 21:37:28 +0000 Subject: Clean up a few places where Datums were being treated as pointers (and vice versa) without going through DatumGetPointer. Gavin Sherry, with Feng Tian. --- src/backend/access/common/heaptuple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/access/common/heaptuple.c') diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c index 5dd3848ea2..d7af277e65 100644 --- a/src/backend/access/common/heaptuple.c +++ b/src/backend/access/common/heaptuple.c @@ -57,7 +57,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.120 2008/01/01 19:45:45 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.121 2008/04/17 21:37:28 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -890,7 +890,7 @@ heap_form_tuple(TupleDesc tupleDescriptor, else if (att[i]->attlen == -1 && att[i]->attalign == 'd' && att[i]->attndims == 0 && - !VARATT_IS_EXTENDED(values[i])) + !VARATT_IS_EXTENDED(DatumGetPointer(values[i]))) { values[i] = toast_flatten_tuple_attribute(values[i], att[i]->atttypid, @@ -1001,7 +1001,7 @@ heap_formtuple(TupleDesc tupleDescriptor, else if (att[i]->attlen == -1 && att[i]->attalign == 'd' && att[i]->attndims == 0 && - !VARATT_IS_EXTENDED(values[i])) + !VARATT_IS_EXTENDED(DatumGetPointer(values[i]))) { values[i] = toast_flatten_tuple_attribute(values[i], att[i]->atttypid, -- cgit v1.2.1