Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc61878

Browse files
committed
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 domainsover certain built-in types such as boolean. The special formattingrules 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 likelyto trip up some applications. So no back-patch.Pavel Stehule
1 parent3bf3ab8 commitbc61878

File tree

1 file changed

+6
-0
lines changed
  • src/backend/utils/adt

1 file changed

+6
-0
lines changed

‎src/backend/utils/adt/xml.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,12 @@ map_sql_value_to_xml_value(Datum value, Oid type, bool xml_escape_strings)
20012001
boolisvarlena;
20022002
char*str;
20032003

2004+
/*
2005+
* Flatten domains; the special-case treatments below should apply
2006+
* to, eg, domains over boolean not just boolean.
2007+
*/
2008+
type=getBaseType(type);
2009+
20042010
/*
20052011
* Special XSD formatting for some data types
20062012
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp