pub fn xml_value(
ty: u32,
value: &Value,
escape: bool,
session: &dyn Session,
) -> Result<String>Expand description
map_sql_value_to_xml_value: the text of a value that is not null in XML. An array gives an element for each element that is not null. A boolean, a date, a timestamp and a bytea have the forms of XML Schema. The other types give their output, which has the special characters escaped when escape is true, except for xml.
ยงErrors
22008 for an infinite date or timestamp, and the errors of the output of the type.