Re: [HACKERS] [BUGS] BUG #4822: xmlattributes encodes '' twice

2009-06-09 Thread Peter Eisentraut
On Thursday 28 May 2009 13:31:16 Itagaki Takahiro wrote: 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. I have committed your patch with minor editing. Thanks. -- Sent via pgsql-hackers mailing list

Re: [HACKERS] [BUGS] BUG #4822: xmlattributes encodes '' twice

2009-06-09 Thread Peter Eisentraut
On Sunday 31 May 2009 20:00:44 Tom Lane wrote: 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

Re: [HACKERS] [BUGS] BUG #4822: xmlattributes encodes '' twice

2009-05-31 Thread Tom Lane
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

Re: [HACKERS] [BUGS] BUG #4822: xmlattributes encodes '' twice

2009-05-28 Thread Itagaki Takahiro
Tom Lane t...@sss.pgh.pa.us wrote: =# SELECT xmlelement(name a, xmlattributes('./qa?a=1b=2' as href), 'QA'); xmlelement a href=./qa?a=1amp;amp;b=2Qamp;A/a '' in xmlattributes seems to be encoded twice. This was