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

Commit32291ae

Browse files
committed
Fix thinko in in_range_float4_float8.
I forgot the coding rule for correct use of Float8GetDatumFast.Per buildfarm.
1 parent8b29e88 commit32291ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/utils/adt/float.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,9 +1259,12 @@ Datum
12591259
in_range_float4_float8(PG_FUNCTION_ARGS)
12601260
{
12611261
/* Doesn't seem worth duplicating code for, so just invoke float8_float8 */
1262+
float8val= (float8)PG_GETARG_FLOAT4(0);
1263+
float8base= (float8)PG_GETARG_FLOAT4(1);
1264+
12621265
returnDirectFunctionCall5(in_range_float8_float8,
1263-
Float8GetDatumFast((float8)PG_GETARG_FLOAT4(0)),
1264-
Float8GetDatumFast((float8)PG_GETARG_FLOAT4(1)),
1266+
Float8GetDatumFast(val),
1267+
Float8GetDatumFast(base),
12651268
PG_GETARG_DATUM(2),
12661269
PG_GETARG_DATUM(3),
12671270
PG_GETARG_DATUM(4));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp