git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2049a7d) | patch
Fix namespace handling in xpath function
Wed, 7 Jan 2015 04:06:13 +0000 (23:06 -0500)
2015年1月18日 03:11:20 +0000 (22:11 -0500)
commit 6bbf75192801c0965cec28c8d93c4ed5f2e68b20
Fix namespace handling in xpath function

Previously, the xml value resulting from an xpath query would not have
namespace declarations if the namespace declarations were attached to
an ancestor element in the input xml value. That means the output value
was not correct XML. Fix that by running the result value through
xmlCopyNode(), which produces the correct namespace declarations.

Author: Ali Akbar <the.apaan@gmail.com>
src/backend/utils/adt/xml.c diff | blob | blame | history
src/test/regress/expected/xml.out diff | blob | blame | history
src/test/regress/expected/xml_1.out diff | blob | blame | history
src/test/regress/sql/xml.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /