[xml bugfix] push_back add error judgment
This commit is contained in:
@ -190,7 +190,9 @@ int ObExprXmlElement::eval_xml_element(const ObExpr &expr, ObEvalCtx &ctx, ObDat
|
|||||||
} else {
|
} else {
|
||||||
ObObj temp_value;
|
ObObj temp_value;
|
||||||
temp_value.set_string(ObUserDefinedSQLType, xml_value_data);
|
temp_value.set_string(ObUserDefinedSQLType, xml_value_data);
|
||||||
value_vec.push_back(temp_value);
|
if (OB_FAIL(value_vec.push_back(temp_value))) {
|
||||||
|
LOG_WARN("failed to push back temp value.", K(ret), K(temp_value));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (OB_FAIL(ObTextStringHelper::read_real_string_data(tmp_allocator, *datum,
|
} else if (OB_FAIL(ObTextStringHelper::read_real_string_data(tmp_allocator, *datum,
|
||||||
xml_arg->datum_meta_,
|
xml_arg->datum_meta_,
|
||||||
@ -321,8 +323,8 @@ int ObExprXmlElement::construct_value_array(ObIAllocator &allocator, const ObStr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (OB_SUCC(ret)) {
|
if (OB_SUCC(ret) && OB_FAIL(res_value.push_back(temp_value))) {
|
||||||
res_value.push_back(temp_value);
|
LOG_WARN("failed to push back value.", K(ret), K(temp_value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user