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
3fb0e543
Commit
3fb0e543
authored
Feb 28, 2006
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.16313
parents
47cb191a
bcc72ad0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
mysql-test/r/xml.result
mysql-test/r/xml.result
+2
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+6
-0
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+11
-2
No files found.
mysql-test/r/xml.result
View file @
3fb0e543
...
@@ -544,3 +544,5 @@ extractvalue('<a>a<b>B</b></a>','a|/b')
...
@@ -544,3 +544,5 @@ 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: '>'
select extractvalue('<a><b>b</b><b!>b!</b!></a>','//b!');
ERROR HY000: XPATH syntax error: '!'
mysql-test/t/xml.test
View file @
3fb0e543
...
@@ -237,3 +237,9 @@ select extractvalue('<a>a<b>B</b></a>','a|/b');
...
@@ -237,3 +237,9 @@ select extractvalue('<a>a<b>B</b></a>','a|/b');
#
#
--
error
1105
--
error
1105
select
extractvalue
(
'<a>A</a>'
,
'/<a>'
);
select
extractvalue
(
'<a>A</a>'
,
'/<a>'
);
#
# Bug#16313 XML: extractvalue() ignores '!' in names
#
--
error
1105
select
extractvalue
(
'<a><b>b</b><b!>b!</b!></a>'
,
'//b!'
);
sql/item_xmlfunc.cc
View file @
3fb0e543
...
@@ -1976,8 +1976,17 @@ static int my_xpath_parse_AndExpr(MY_XPATH *xpath)
...
@@ -1976,8 +1976,17 @@ static int my_xpath_parse_AndExpr(MY_XPATH *xpath)
*/
*/
static
int
my_xpath_parse_ne
(
MY_XPATH
*
xpath
)
static
int
my_xpath_parse_ne
(
MY_XPATH
*
xpath
)
{
{
return
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EXCL
)
&&
MY_XPATH_LEX
prevtok
=
xpath
->
prevtok
;
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EQ
);
if
(
!
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EXCL
))
return
0
;
if
(
!
my_xpath_parse_term
(
xpath
,
MY_XPATH_LEX_EQ
))
{
/* Unget the exclamation mark */
xpath
->
lasttok
=
xpath
->
prevtok
;
xpath
->
prevtok
=
prevtok
;
return
0
;
}
return
1
;
}
}
static
int
my_xpath_parse_EqualityOperator
(
MY_XPATH
*
xpath
)
static
int
my_xpath_parse_EqualityOperator
(
MY_XPATH
*
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