summaryrefslogtreecommitdiff
path: root/mysql-test/t/xml.test
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@oracle.com>2010-11-21 14:32:48 +0100
committerMarc Alff <marc.alff@oracle.com>2010-11-21 14:32:48 +0100
commit9d9699209d9ca66648db8aff46f6b66a4c1c18de (patch)
tree6f388bd43f36d4b3086f63dbcf97467ca95c61ff /mysql-test/t/xml.test
parentce89012c8bfdecded7b7e96b7ea0fb91b199155b (diff)
parent8664de2230300967537d75a9ec51d15c400ca36d (diff)
downloadmariadb-git-9d9699209d9ca66648db8aff46f6b66a4c1c18de.tar.gz
local merge
Diffstat (limited to 'mysql-test/t/xml.test')
-rw-r--r--mysql-test/t/xml.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/xml.test b/mysql-test/t/xml.test
index 6e7d38cdfca..4d5c5e1a91e 100644
--- a/mysql-test/t/xml.test
+++ b/mysql-test/t/xml.test
@@ -617,4 +617,29 @@ FROM t1 ORDER BY t1.id;
DROP TABLE t1;
+--echo #
+--echo # Bug#57279 updatexml dies with: Assertion failed: str_arg[length] == 0
+--echo #
+
+--error ER_ILLEGAL_VALUE_FOR_TYPE
+SELECT UPDATEXML(NULL, (LPAD(0.1111E-15, '2011', 1)), 1);
+--error ER_ILLEGAL_VALUE_FOR_TYPE
+SELECT EXTRACTVALUE('', LPAD(0.1111E-15, '2011', 1));
+
+
--echo End of 5.1 tests
+
+
+--echo #
+--echo # Start of 5.5 tests
+--echo #
+
+--echo #
+--echo # Bug#58175 xml functions read initialized bytes when conversions happen
+--echo #
+SET NAMES latin1;
+SELECT UPDATEXML(CONVERT('' USING swe7), TRUNCATE('',1), 0);
+
+--echo #
+--echo # End of 5.5 tests
+--echo #