Skip to content

Commit 2f0434e

Browse files
committed
Fix oversight in backpatch of 6cae9d2
During backpatch of 6cae9d2 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
1 parent 2da8e56 commit 2f0434e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/gist/gistget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ getNextNearest(IndexScanDesc scan)
577577
if (!scan->xs_orderbynulls[i])
578578
pfree(DatumGetPointer(scan->xs_orderbyvals[i]));
579579
#endif
580-
scan->xs_orderbyvals[i] = item->distances[i].value;
580+
scan->xs_orderbyvals[i] = Float8GetDatum(item->distances[i].value);
581581
scan->xs_orderbynulls[i] = item->distances[i].isnull;
582582
}
583583
else if (so->orderByTypes[i] == FLOAT4OID)

0 commit comments

Comments
 (0)