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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
89a5b96e
Commit
89a5b96e
authored
Mar 22, 2006
by
msvensson@neptunus.(none)
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
414242b3
235c5d35
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 @
89a5b96e
...
...
@@ -546,7 +546,7 @@ select extractvalue('<a>a<b>B</b></a>','a|/b');
extractvalue('<a>a<b>B</b></a>','a|/b')
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!');
ERROR HY000: XPATH syntax error: '!'
select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant::*');
...
...
@@ -613,3 +613,5 @@ select extractValue('<e>1</e>','position()');
ERROR HY000: XPATH syntax error: ''
select extractValue('<e>1</e>','last()');
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 @
89a5b96e
...
...
@@ -286,3 +286,12 @@ select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
select
extractValue
(
'<e>1</e>'
,
'position()'
);
--
error
1105
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 @
89a5b96e
This diff is collapsed.
Click to expand it.
sql/item_xmlfunc.cc
View file @
89a5b96e
...
...
@@ -1561,10 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
return
my_xpath_parse_RelativeLocationPath
(
xpath
);
}
if
(
my_xpath_parse_RelativeLocationPath
(
xpath
))
return
1
;
return
1
;
return
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EOF
)
||
my_xpath_parse_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