mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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
This commit is contained in:
parent
53d9cf2db5
commit
140b7b1f93
@ -576,7 +576,7 @@ getNextNearest(IndexScanDesc scan)
|
|||||||
if (!scan->xs_orderbynulls[i])
|
if (!scan->xs_orderbynulls[i])
|
||||||
pfree(DatumGetPointer(scan->xs_orderbyvals[i]));
|
pfree(DatumGetPointer(scan->xs_orderbyvals[i]));
|
||||||
#endif
|
#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;
|
scan->xs_orderbynulls[i] = item->distances[i].isnull;
|
||||||
}
|
}
|
||||||
else if (so->orderByTypes[i] == FLOAT4OID)
|
else if (so->orderByTypes[i] == FLOAT4OID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user