• Alexander Barkov's avatar
    MDEV-15118 ExtractValue(xml,something_complex) does not work · dae4fb0a
    Alexander Barkov authored
    Item_xml_str_func::fix_fields() used a local "String tmp" as a buffer
    for args[1]->val_str(). "tmp" was freed at the end of fix_fields(),
    while Items created during my_xpath_parse() still pointed to its fragments.
    
    Adding a new member Item_xml_str_func::m_xpath_query and store the result
    of args[1]->val_str() into it.
    dae4fb0a
item_xmlfunc.cc 75.8 KB