diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-06-09 15:59:49 +0400 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-06-30 11:43:02 +0200 |
commit | e779088114229c96d47bc72081fd9584d7c43b02 (patch) | |
tree | 9d68d5b7b59856701c097057d067d253706efd77 /mysql-test/t/xml.test | |
parent | 11ff9014b1686b2cf8df89958d71cc64962b7513 (diff) | |
download | mariadb-git-e779088114229c96d47bc72081fd9584d7c43b02.tar.gz |
More tests for MDEV-10134 Add full support for DEFAULT
XML functions
Diffstat (limited to 'mysql-test/t/xml.test')
-rw-r--r-- | mysql-test/t/xml.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/xml.test b/mysql-test/t/xml.test index 3e7c9b78673..417c206f6dc 100644 --- a/mysql-test/t/xml.test +++ b/mysql-test/t/xml.test @@ -754,3 +754,24 @@ DROP TABLE t1; --echo # --echo # End of 10.0 tests --echo # + +--echo # +--echo # Start of 10.2 tests +--echo # + +--echo # +--echo # MDEV-10134 Add full support for DEFAULT +--echo # +CREATE TABLE t1 (a TEXT, b TEXT DEFAULT ExtractValue(a, '/a/b')); +INSERT INTO t1 (a) VALUES ('<a><b>bbb</b></a>'); +SELECT b FROM t1; +DROP TABLE t1; + +CREATE TABLE t1 (a TEXT, b TEXT DEFAULT UpdateXML(a, '/a/b','<b>xxx</b>')); +INSERT INTO t1 (a) VALUES ('<a><b>bbb</b></a>'); +SELECT b FROM t1; +DROP TABLE t1; + +--echo # +--echo # End of 10.2 tests +--echo # |