Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit984b9ba

Browse files
committed
Fix oversight in backpatch of6cae9d2
During backpatch of6cae9d2 Float8GetDatum() was accidentally removed. Thiscommit turns it back.Reported-by: Erik RijkersDiscussion:https://postgr.es/m/6d51305e1159241cabee132f7efc7eff%40xs4all.nlAuthor: Tom LaneBackpatch-through: from 11 to 9.5
1 parentd6a90aa commit984b9ba

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
@@ -580,7 +580,7 @@ getNextNearest(IndexScanDesc scan)
580580
if (!scan->xs_orderbynulls[i])
581581
pfree(DatumGetPointer(scan->xs_orderbyvals[i]));
582582
#endif
583-
scan->xs_orderbyvals[i]=item->distances[i].value;
583+
scan->xs_orderbyvals[i]=Float8GetDatum(item->distances[i].value);
584584
scan->xs_orderbynulls[i]=item->distances[i].isnull;
585585
}
586586
elseif (so->orderByTypes[i]==FLOAT4OID)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp