summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-04-07 11:04:33 +0500
committerunknown <bar@mysql.com>2006-04-07 11:04:33 +0500
commitfd9d70a072926cccb002b283a02687acd8deeed6 (patch)
tree56346b198448b682b2989d59ac4dd4744265aad8 /mysql-test/t
parent6de776f70afb52fd4e851f57b7165d13dfa5dc95 (diff)
downloadmariadb-git-fd9d70a072926cccb002b283a02687acd8deeed6.tar.gz
Bug#18285: ExtractValue not returning character data within <![CDATA[]]> as expected
mysql-test/r/xml.result: Adding test case mysql-test/t/xml.test: Adding test case strings/xml.c: Adding missing support of CDATA sections.
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/xml.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/xml.test b/mysql-test/t/xml.test
index af3ec2d827e..0dda1922b8d 100644
--- a/mysql-test/t/xml.test
+++ b/mysql-test/t/xml.test
@@ -279,6 +279,12 @@ select extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin);
select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
#
+# Bug#18285: ExtractValue not returning character
+# data within <![CDATA[]]> as expected
+#
+select ExtractValue('<tag1><![CDATA[test]]></tag1>','/tag1');
+
+#
# Bug #18171 XML: ExtractValue: the XPath position()
# function crashes the server!
#