• Tom Lane's avatar
    Fix NULL handling in datum_to_jsonb(). · 3587cbc3
    Tom Lane authored
    The function failed to adhere to its specification that the "tcategory"
    argument should not be examined when the input value is NULL.  This
    resulted in a crash in some cases.  Per bug #13680 from Boyko Yordanov.
    
    In passing, re-pgindent some recent changes in jsonb.c, and fix a rather
    ungrammatical comment.
    
    Diagnosis and patch by Michael Paquier, cosmetic changes by me
    3587cbc3
jsonb.c 46.7 KB