• Andrew Dunstan's avatar
    Fix jsonb replace and delete on scalars and empty structures · 3f2cec79
    Andrew Dunstan authored
    These operations now error out if attempted on scalars, and simply
    return the input if attempted on empty arrays or objects. Along the way
    we remove the unnecessary cloning of the input when it's known to be
    unchanged. Regression tests covering these cases are added.
    3f2cec79
jsonfuncs.c 95.4 KB