• Andrew Dunstan's avatar
    Fix treatment of nulls in jsonb_agg and jsonb_object_agg · d9a356ff
    Andrew Dunstan authored
    The wrong is_null flag was being passed to datum_to_json. Also, null
    object key values are not permitted, and this was not being checked
    for. Add regression tests covering these cases, and also add those tests
    to the json set, even though it was doing the right thing.
    
    Fixes bug #13514, initially diagnosed by Tom Lane.
    d9a356ff
json.sql 19.7 KB