mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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().
This commit is contained in:
@@ -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>');
|
||||
|
||||
Reference in New Issue
Block a user