mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
More tests for MDEV-10134 Add full support for DEFAULT
XML functions
This commit is contained in:
parent
11ff9014b1
commit
e779088114
2 changed files with 42 additions and 0 deletions
|
@ -1276,3 +1276,24 @@ DROP TABLE t1;
|
|||
#
|
||||
# End of 10.0 tests
|
||||
#
|
||||
#
|
||||
# Start of 10.2 tests
|
||||
#
|
||||
#
|
||||
# MDEV-10134 Add full support for DEFAULT
|
||||
#
|
||||
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;
|
||||
b
|
||||
bbb
|
||||
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;
|
||||
b
|
||||
<a><b>xxx</b></a>
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 10.2 tests
|
||||
#
|
||||
|
|
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue