diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-17 21:37:28 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-17 21:37:28 +0000 |
commit | 2f0f7b4bce13e68394543728801ef011fd82fac6 (patch) | |
tree | 0a8d0a662ac316ac07f33e10cd607ca0a49eac25 /src/backend/access/common/heaptuple.c | |
parent | 25e46a504b215fb7e11463d628d3477098323367 (diff) | |
download | postgresql-2f0f7b4bce13e68394543728801ef011fd82fac6.tar.gz |
Clean up a few places where Datums were being treated as pointers (and vice
versa) without going through DatumGetPointer.
Gavin Sherry, with Feng Tian.
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r-- | src/backend/access/common/heaptuple.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |