1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Fix assorted carelessness about Datum vs. int64 vs. uint64

Bugs introduced by commit 81c5e46c49
This commit is contained in:
Robert Haas
2017-09-01 00:13:25 -04:00
parent 0d9506d125
commit 7b69b6ceb8
4 changed files with 8 additions and 6 deletions

View File

@ -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);
}