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
33c99749
Commit
33c99749
authored
Mar 22, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into neptunus.(none):/home/msvensson/mysql/mysql-5.1
parents
448e078a
4399ba5a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
57 deletions
+76
-57
mysql-test/r/xml.result
mysql-test/r/xml.result
+3
-1
mysql-test/t/xml.test
mysql-test/t/xml.test
+9
-0
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+62
-52
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+2
-4
No files found.
mysql-test/r/xml.result
View file @
33c99749
...
@@ -546,7 +546,7 @@ select extractvalue('<a>a<b>B</b></a>','a|/b');
...
@@ -546,7 +546,7 @@ select extractvalue('<a>a<b>B</b></a>','a|/b');
extractvalue('<a>a<b>B</b></a>','a|/b')
extractvalue('<a>a<b>B</b></a>','a|/b')
a
a
select extractvalue('<a>A</a>','/<a>');
select extractvalue('<a>A</a>','/<a>');
ERROR HY000: XPATH syntax error: '>'
ERROR HY000: XPATH syntax error: '
<a
>'
select extractvalue('<a><b>b</b><b!>b!</b!></a>','//b!');
select extractvalue('<a><b>b</b><b!>b!</b!></a>','//b!');
ERROR HY000: XPATH syntax error: '!'
ERROR HY000: XPATH syntax error: '!'
select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant::*');
select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant::*');
...
@@ -613,3 +613,5 @@ select extractValue('<e>1</e>','position()');
...
@@ -613,3 +613,5 @@ select extractValue('<e>1</e>','position()');
ERROR HY000: XPATH syntax error: ''
ERROR HY000: XPATH syntax error: ''
select extractValue('<e>1</e>','last()');
select extractValue('<e>1</e>','last()');
ERROR HY000: XPATH syntax error: ''
ERROR HY000: XPATH syntax error: ''
select extractValue('<e><a>1</a></e>','/e/');
ERROR HY000: XPATH syntax error: ''
mysql-test/t/xml.test
View file @
33c99749
...
@@ -286,3 +286,12 @@ select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
...
@@ -286,3 +286,12 @@ select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
select
extractValue
(
'<e>1</e>'
,
'position()'
);
select
extractValue
(
'<e>1</e>'
,
'position()'
);
--
error
1105
--
error
1105
select
extractValue
(
'<e>1</e>'
,
'last()'
);
select
extractValue
(
'<e>1</e>'
,
'last()'
);
#
# Bug #18172 XML: Extractvalue() accepts mallformed
# XPath without a XPath syntax error
#
--
error
1105
select
extractValue
(
'<e><a>1</a></e>'
,
'/e/'
);
sql/ha_ndbcluster_binlog.cc
View file @
33c99749
This diff is collapsed.
Click to expand it.
sql/item_xmlfunc.cc
View file @
33c99749
...
@@ -1561,10 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
...
@@ -1561,10 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
return
my_xpath_parse_RelativeLocationPath
(
xpath
);
return
my_xpath_parse_RelativeLocationPath
(
xpath
);
}
}
if
(
my_xpath_parse_RelativeLocationPath
(
xpath
))
return
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EOF
)
||
return
1
;
my_xpath_parse_RelativeLocationPath
(
xpath
);
return
1
;
}
}
...
...
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