From 1a3cb50c24f8af7124823ddd8d85e97632182cb2 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Apr 2006 11:49:20 +0500 Subject: Bug#18170: XML: ExtractValue(): XPath expression can't use QNames (colon in names) Problem source: Qualified names (aka QName) didn't work as tag names and attribute names, because the parser lacked a real rule to scan QName, so it understood only non-qualified names without prefixes. Solution: New rule was added to check both "ident" and "ident:ident" sequences. mysql-test/r/xml.result: Adding test case mysql-test/t/xml.test: Adding test case sql/item_xmlfunc.cc: Adding real QName parser rule and using it in NodeTest rule. --- mysql-test/t/xml.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mysql-test/t/xml.test') diff --git a/mysql-test/t/xml.test b/mysql-test/t/xml.test index 8ed623883b6..d3e2da46413 100644 --- a/mysql-test/t/xml.test +++ b/mysql-test/t/xml.test @@ -321,3 +321,11 @@ END// DELIMITER ;// CALL p2(); DROP PROCEDURE p2; + +# +# Bug#18170: XML: ExtractValue(): +# XPath expression can't use QNames (colon in names) +# +select extractValue('','count(ns:element)'); +select extractValue('a','/ns:element'); +select extractValue('a','/ns:element/@xmlns:ns'); -- cgit v1.2.1