• Tom Lane's avatar
    hash_any returns Datum, not uint32 (and definitely not "int"). · 2c22afaa
    Tom Lane authored
    The coding in JsonbHashScalarValue might have accidentally failed to fail
    given current representational choices, but the key word there would be
    "accidental".  Insert the appropriate datatype conversion macro.  And
    use the right conversion macro for hash_numeric's result, too.
    
    In passing make the code a bit cleaner and less repetitive by factoring
    out the xor step from the switch.
    2c22afaa
jsonb_util.c 52.9 KB