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
7957622b
Commit
7957622b
authored
Feb 04, 2009
by
Matthias Leich
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge, no conflicts
parents
2df0beee
11774053
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
6 deletions
+42
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-2
mysql-test/r/xml.result
mysql-test/r/xml.result
+11
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+14
-0
sql-bench/bench-init.pl.sh
sql-bench/bench-init.pl.sh
+8
-3
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+7
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
7957622b
...
...
@@ -1528,8 +1528,8 @@ sub mysql_fix_arguments () {
mtr_init_args
(
\
$args
);
mtr_add_arg
(
$args
,
"
--defaults-file=%s
",
$path_config_file
);
mtr_add_arg
(
$args
,
"
--basedir=
",
$basedir
);
mtr_add_arg
(
$args
,
"
--bindir=
",
$path_client_bindir
);
mtr_add_arg
(
$args
,
"
--basedir=
%s
",
$basedir
);
mtr_add_arg
(
$args
,
"
--bindir=
%s
",
$path_client_bindir
);
mtr_add_arg
(
$args
,
"
--verbose
");
return
mtr_args2str
(
$exe
,
@$args
);
}
...
...
mysql-test/r/xml.result
View file @
7957622b
...
...
@@ -1053,4 +1053,15 @@ ExtractValue('<xml xxx "yyy">CharData</xml>', '/xml')
NULL
Warnings:
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 17: STRING unexpected ('>' wanted)'
set @x=10;
select extractvalue('
<a></a>
','$@x/a');
ERROR HY000: XPATH syntax error: '/a'
select extractvalue('
<a></a>
','round(123.4)/a');
ERROR HY000: XPATH syntax error: '/a'
select extractvalue('
<a></a>
','1/a');
ERROR HY000: XPATH syntax error: '/a'
select extractvalue('
<a></a>
','"b"/a');
ERROR HY000: XPATH syntax error: '/a'
select extractvalue('
<a></a>
','(1)/a');
ERROR HY000: XPATH syntax error: '/a'
End of 5.1 tests
mysql-test/t/xml.test
View file @
7957622b
...
...
@@ -575,5 +575,19 @@ SELECT ExtractValue(@xml, 'html/body');
SELECT
ExtractValue
(
'<xml "xxx" "yyy">CharData</xml>'
,
'/xml'
);
SELECT
ExtractValue
(
'<xml xxx "yyy">CharData</xml>'
,
'/xml'
);
#
# Bug#42495 updatexml: Assertion failed: xpath->context, file .\item_xmlfunc.cc, line 2507
#
set
@
x
=
10
;
--
error
ER_UNKNOWN_ERROR
select
extractvalue
(
'<a></a>'
,
'$@x/a'
);
--
error
ER_UNKNOWN_ERROR
select
extractvalue
(
'<a></a>'
,
'round(123.4)/a'
);
--
error
ER_UNKNOWN_ERROR
select
extractvalue
(
'<a></a>'
,
'1/a'
);
--
error
ER_UNKNOWN_ERROR
select
extractvalue
(
'<a></a>'
,
'"b"/a'
);
--
error
ER_UNKNOWN_ERROR
select
extractvalue
(
'<a></a>'
,
'(1)/a'
);
--
echo
End
of
5.1
tests
sql-bench/bench-init.pl.sh
View file @
7957622b
...
...
@@ -47,7 +47,7 @@ $opt_machine=""; $opt_suffix="";
$opt_create_options
=
undef
;
$opt_optimization
=
"None"
;
$opt_hw
=
""
;
$opt_threads
=
5
;
$opt_threads
=
-1
;
if
(!
defined
(
$opt_time_limit
))
{
...
...
@@ -68,6 +68,11 @@ $limits=merge_limits($server,$opt_cmp);
$date
=
date
()
;
@estimated
=(
0.0,0.0,0.0
)
;
# For estimated time support
if
(
$opt_threads
!=
-1
)
{
print
"WARNING: Option --threads is deprecated and has no effect
\n
"
}
if
(
$opt_hires
)
{
eval
"use Time::HiRes;"
;
...
...
@@ -560,8 +565,8 @@ All benchmarks takes the following options:
Inform test suite that we are generate random inital values for sequence of
test executions. It should be used for imitation of real conditions.
--threads=#
(Default 5)
Number of threads for multi-user benchmarks
.
--threads=#
**DEPRECATED**
This option has no effect, and will be removed in a future version
.
--tcpip
Inform test suite that we are using TCP/IP to connect to the server. In
...
...
sql/item_xmlfunc.cc
View file @
7957622b
...
...
@@ -1969,6 +1969,13 @@ my_xpath_parse_FilterExpr_opt_slashes_RelativeLocationPath(MY_XPATH *xpath)
if
(
!
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_SLASH
))
return
1
;
if
(
xpath
->
item
->
type
()
!=
Item
::
XPATH_NODESET
)
{
xpath
->
lasttok
=
xpath
->
prevtok
;
xpath
->
error
=
1
;
return
0
;
}
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_SLASH
);
return
my_xpath_parse_RelativeLocationPath
(
xpath
);
}
...
...
@@ -1976,7 +1983,6 @@ static int my_xpath_parse_PathExpr(MY_XPATH *xpath)
{
return
my_xpath_parse_LocationPath
(
xpath
)
||
my_xpath_parse_FilterExpr_opt_slashes_RelativeLocationPath
(
xpath
);
}
...
...
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