diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2010-11-22 14:47:28 +0300 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2010-11-22 14:47:28 +0300 |
commit | bd557f04f644bda3b493c37225b169167eb6e11e (patch) | |
tree | 318334755d94aef3ee64545c0a4a566380f9162f /mysql-test/t/xml.test | |
parent | 3bae49d64ce0df04a85583b5dc680cda54760dbc (diff) | |
parent | 9d9699209d9ca66648db8aff46f6b66a4c1c18de (diff) | |
download | mariadb-git-bd557f04f644bda3b493c37225b169167eb6e11e.tar.gz |
Manual merge from mysql-5.5-bugteam.
Diffstat (limited to 'mysql-test/t/xml.test')
-rw-r--r-- | mysql-test/t/xml.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/t/xml.test b/mysql-test/t/xml.test index a8917fc9fe7..1dc5eadbccc 100644 --- a/mysql-test/t/xml.test +++ b/mysql-test/t/xml.test @@ -617,15 +617,43 @@ FROM t1 ORDER BY t1.id; DROP TABLE t1; + --echo # --echo # Bug#57257 Replace(ExtractValue(...)) causes MySQL crash --echo # SET NAMES utf8; SELECT REPLACE(EXTRACTVALUE('1', '/a'),'ds',''); + --echo # --echo # Bug #57820 extractvalue crashes --echo # SELECT AVG(DISTINCT EXTRACTVALUE((''),('$@k'))); + +--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 # |