• Andrew Dunstan's avatar
    Process variadic arguments consistently in json functions · 18fc4ecf
    Andrew Dunstan authored
    json_build_object and json_build_array and the jsonb equivalents did not
    correctly process explicit VARIADIC arguments. They are modified to use
    the new extract_variadic_args() utility function which abstracts away
    the details of the call method.
    
    Michael Paquier, reviewed by Tom Lane and Dmitry Dolgov.
    
    Backpatch to 9.5 for the jsonb fixes and 9.4 for the json fixes, as
    that's where they originated.
    18fc4ecf
jsonb.sql 49.8 KB