Merging from mysql-5.1-security

This commit is contained in:
Alexander Barkov 2010-11-11 13:31:17 +03:00
commit bd165aa4f0
6 changed files with 50 additions and 3 deletions

View file

@ -2798,12 +2798,12 @@ String *Item_func_xml_extractvalue::val_str(String *str)
null_value= 0;
if (!nodeset_func ||
!(res= args[0]->val_str(str)) ||
!parse_xml(res, &pxml))
!parse_xml(res, &pxml) ||
!(res= nodeset_func->val_str(&tmp_value)))
{
null_value= 1;
return 0;
}
res= nodeset_func->val_str(&tmp_value);
return res;
}