提交 bc618786 编写于 作者: T Tom Lane

Fix map_sql_value_to_xml_value() to treat domains like their base types.

This was already the case for domains over arrays, but not for domains
over certain built-in types such as boolean.  The special formatting
rules for those types should apply to domains over them as well.
Per discussion.

While this is a bug fix, it's also a behavioral change that seems likely
to trip up some applications.  So no back-patch.

Pavel Stehule
上级 3bf3ab8c
......@@ -2001,6 +2001,12 @@ map_sql_value_to_xml_value(Datum value, Oid type, bool xml_escape_strings)
bool isvarlena;
char *str;
/*
* Flatten domains; the special-case treatments below should apply
* to, eg, domains over boolean not just boolean.
*/
type = getBaseType(type);
/*
* Special XSD formatting for some data types
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册