diff options
author | David Rowley <drowley@postgresql.org> | 2021-07-09 15:13:01 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2021-07-09 15:13:01 +1200 |
commit | b1862113931022e6766a4e8ba9036f3d6241677c (patch) | |
tree | 56faff1fa27e1567e63718b9fd319d1ca7de14a1 /src/backend/utils/adt/dbsize.c | |
parent | efc42a1e18b53e376955ee2c12d89982e80b0830 (diff) | |
download | postgresql-b1862113931022e6766a4e8ba9036f3d6241677c.tar.gz postgresql-b1862113931022e6766a4e8ba9036f3d6241677c.zip |
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
Diffstat (limited to 'src/backend/utils/adt/dbsize.c')
-rw-r--r-- | src/backend/utils/adt/dbsize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/dbsize.c b/src/backend/utils/adt/dbsize.c index ab4b6ee55e3..b7ca7e2a9af 100644 --- a/src/backend/utils/adt/dbsize.c +++ b/src/backend/utils/adt/dbsize.c @@ -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); } |