mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-30 00:47:19 +02:00
Add missing Int64GetDatum macro in dbsize.c
I accidentally missed adding this when adjusting 55fe60938
for back
patching. This adjustment was made for 9.6 to 13. 14 and master are not
affected.
Discussion: https://postgr.es/m/CAApHDvp=twCsGAGQG=A=cqOaj4mpknPBW-EZB-sd+5ZS5gCTtA@mail.gmail.com
This commit is contained in:
parent
efc42a1e18
commit
b186211393
@ -639,7 +639,8 @@ numeric_truncated_divide(Numeric n, int64 divisor)
|
||||
Datum divisor_numeric;
|
||||
Datum result;
|
||||
|
||||
divisor_numeric = DirectFunctionCall1(int8_numeric, divisor);
|
||||
divisor_numeric = DirectFunctionCall1(int8_numeric,
|
||||
Int64GetDatum(divisor));
|
||||
result = DirectFunctionCall2(numeric_div_trunc, d, divisor_numeric);
|
||||
return DatumGetNumeric(result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user