aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2019-09-19 23:36:01 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2019-09-19 23:36:01 +0300
commit984b9ba1d119ee59babea515b2ecab70b7b11910 (patch)
tree5250e0d0c0a1a28da215a152c042956f4de5d8f3 /src/backend/access/gist/gistget.c
parentd6a90aac563ecb5b32e2a1d902c9a18d8c21671f (diff)
downloadpostgresql-984b9ba1d119ee59babea515b2ecab70b7b11910.tar.gz
postgresql-984b9ba1d119ee59babea515b2ecab70b7b11910.zip
Fix oversight in backpatch of 6cae9d2c10
During backpatch of 6cae9d2c10 Float8GetDatum() was accidentally removed. This commit turns it back. Reported-by: Erik Rijkers Discussion: https://postgr.es/m/6d51305e1159241cabee132f7efc7eff%40xs4all.nl Author: Tom Lane Backpatch-through: from 11 to 9.5
Diffstat (limited to 'src/backend/access/gist/gistget.c')
-rw-r--r--src/backend/access/gist/gistget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c
index 0760269c06a..ae38d711f63 100644
--- a/src/backend/access/gist/gistget.c
+++ b/src/backend/access/gist/gistget.c
@@ -580,7 +580,7 @@ getNextNearest(IndexScanDesc scan)
if (!scan->xs_orderbynulls[i])
pfree(DatumGetPointer(scan->xs_orderbyvals[i]));
#endif
- scan->xs_orderbyvals[i] = item->distances[i].value;
+ scan->xs_orderbyvals[i] = Float8GetDatum(item->distances[i].value);
scan->xs_orderbynulls[i] = item->distances[i].isnull;
}
else if (so->orderByTypes[i] == FLOAT4OID)