Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e7790881
Commit
e7790881
authored
Jun 09, 2016
by
Alexander Barkov
Committed by
Sergei Golubchik
Jun 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests for MDEV-10134 Add full support for DEFAULT
XML functions
parent
11ff9014
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/xml.result
mysql-test/r/xml.result
+21
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+21
-0
No files found.
mysql-test/r/xml.result
View file @
e7790881
...
...
@@ -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
#
mysql-test/t/xml.test
View file @
e7790881
...
...
@@ -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
#
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment