• Rucha Deodhar's avatar
    MDEV-31599: Assertion `0' failed in Item_param::can_return_value · 5d3e14d7
    Rucha Deodhar authored
    from Item::val_json, UBSAN: member access within null pointer of
    type 'struct String' in sql/item_jsonfunc.cc
    
    Analysis:
    The first argument of json_schema_valid() needs to be a constant.
    Fix:
    Parse the schema if the item is constant otherwise set it to return null.
    5d3e14d7
item_jsonfunc.cc 114 KB