diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-09-01 00:13:25 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-09-01 00:14:54 -0400 |
commit | 7b69b6ceb8047979ddf82af12ec1de143da62263 (patch) | |
tree | 34b9d49cd1acd5abcfe9357a0b3451866ad921b5 /src/backend/utils/adt/numeric.c | |
parent | 0d9506d125beef18247a5e38a219d3b23e2d312e (diff) | |
download | postgresql-7b69b6ceb8047979ddf82af12ec1de143da62263.tar.gz postgresql-7b69b6ceb8047979ddf82af12ec1de143da62263.zip |
Fix assorted carelessness about Datum vs. int64 vs. uint64
Bugs introduced by commit 81c5e46c490e2426db243eada186995da5bb0ba7
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
-rw-r--r-- | src/backend/utils/adt/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c index 22d5898927c..bc01f3c2846 100644 --- a/src/backend/utils/adt/numeric.c +++ b/src/backend/utils/adt/numeric.c @@ -2285,7 +2285,7 @@ hash_numeric_extended(PG_FUNCTION_ARGS) hash_len * sizeof(NumericDigit), seed); - result = digit_hash ^ weight; + result = UInt64GetDatum(DatumGetUInt64(digit_hash) ^ weight); PG_RETURN_DATUM(result); } |