pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix namespace handling in xpath function 7+ messages / 2 participants [nested] [flat]
* pgsql: Fix namespace handling in xpath function @ 2015-01-07 04:14 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2015-01-07 04:14 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/79af9a1d2668c9edc8171f03c39e7fed571eeb98 Modified Files -------------- src/backend/utils/adt/xml.c | 34 ++++++++++++++++++++++++++-------- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 55 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix namespace handling in xpath function @ 2015-01-18 03:43 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2015-01-18 03:43 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/cebb3f032079fccb2c3224ba6d3eb39e987d4da9 Modified Files -------------- src/backend/utils/adt/xml.c | 17 ++++++++++++++++- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 45 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix namespace handling in xpath function @ 2015-01-18 03:43 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2015-01-18 03:43 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c8ef5b1aceb0fec2b928778e83371b13ba7d70e1 Modified Files -------------- src/backend/utils/adt/xml.c | 34 ++++++++++++++++++++++++++-------- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 55 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix namespace handling in xpath function @ 2015-01-18 03:43 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2015-01-18 03:43 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e32cb8d0e02f8f3fa2c66d80b5cf0ad762c79c9d Modified Files -------------- src/backend/utils/adt/xml.c | 34 ++++++++++++++++++++++++++-------- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 55 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix namespace handling in xpath function @ 2015-01-18 03:43 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 1 reply; 7+ messages in thread From: Peter Eisentraut @ 2015-01-18 03:43 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6bbf75192801c0965cec28c8d93c4ed5f2e68b20 Modified Files -------------- src/backend/utils/adt/xml.c | 34 ++++++++++++++++++++++++++-------- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 55 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix namespace handling in xpath function @ 2015-01-18 03:43 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2015-01-18 03:43 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c975fa4713c2325623d7bbfd81806327234281ac Modified Files -------------- src/backend/utils/adt/xml.c | 17 ++++++++++++++++- src/test/regress/expected/xml.out | 15 +++++++++++++++ src/test/regress/expected/xml_1.out | 12 ++++++++++++ src/test/regress/sql/xml.sql | 2 ++ 4 files changed, 45 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Fix namespace handling in xpath function @ 2015-08-20 10:18 martipamies <martipamies@gmail.com> parent: Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: martipamies @ 2015-08-20 10:18 UTC (permalink / raw) To: pgsql-committers Hi Ali, I have seen that you are the one who fix that Xpath Issue. Great work and congratulations. Although, I've the following issue: I have a requirement to run my applications on a 9.4.1 PostgreSQL server, and it uses Xpaht. Though I was aware of namesapces bug, I have some workaround, but now, new right behaviour enter in conflict with it. Is there any way to run PostgreSQL 9.4.1 with previous Xpaht namespace behaviour? Greetings, Martà -- View this message in context: http://postgresql.nabble.com/pgsql-Fix-namespace-handling-in-xpath-function-tp5834439p5862763.html Sent from the PostgreSQL - committers mailing list archive at Nabble.com. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-08-20 10:18 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-01-07 04:14 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net> 2015-01-18 03:43 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net> 2015-08-20 10:18 ` martipamies <martipamies@gmail.com> 2015-01-18 03:43 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net> 2015-01-18 03:43 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net> 2015-01-18 03:43 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net> 2015-01-18 03:43 pgsql: Fix namespace handling in xpath function Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox