Itagaki Takahiro <itagaki.takah...@oss.ntt.co.jp> writes:
> Here is a patch to fix the bug. I added a parameter 'encode' to
> map_sql_value_to_xml_value() and pass false for xml attributes.

One thing I was wondering about, which is sort of highlighted by your
patch, is why is there the special exception for XML type in the
existing code, and how does that interact with this behavior?
  
> !             /* ... exactly as-is for XML or encode is not required */
> !             if (type == XMLOID || !encode)
>                       return str;

Seems like there could be cases where we're getting one too many or too
few encoding passes when the input is XML.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to