diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-04-08 21:51:38 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-04-08 21:51:38 +0000 |
commit | 77d67a4a3be1a2114ff9869fc3552a39fa7c5e68 (patch) | |
tree | b9ce35991a7861160d1046b4e06eed5603e522bd /src/test/regress/sql/xml.sql | |
parent | 84bb600be180c53addcbccba69be5134fcbce2dc (diff) |
XMLATTRIBUTES() should send the attribute values through
map_sql_value_to_xml_value() instead of directly through the data type output
function. This is per SQL standard, and consistent with XMLELEMENT().
Diffstat (limited to 'src/test/regress/sql/xml.sql')
-rw-r--r-- | src/test/regress/sql/xml.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/regress/sql/xml.sql b/src/test/regress/sql/xml.sql index edf639b8c53..50550aaa358 100644 --- a/src/test/regress/sql/xml.sql +++ b/src/test/regress/sql/xml.sql @@ -54,6 +54,10 @@ SELECT xmlelement(name foo, bytea 'bar'); SET xmlbinary TO hex; SELECT xmlelement(name foo, bytea 'bar'); +SELECT xmlelement(name foo, xmlattributes(true as bar)); +SELECT xmlelement(name foo, xmlattributes('2009-04-09 00:24:37'::timestamp as bar)); +SELECT xmlelement(name foo, xmlattributes('infinity'::timestamp as bar)); + SELECT xmlparse(content 'abc'); SELECT xmlparse(content '<abc>x</abc>'); |