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
701110c9
Commit
701110c9
authored
Mar 01, 2006
by
gluh@eagle.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#16320 XML: extractvalue() won't accept names containing underscores
added '_' to allowed tag body symbols
parent
b2120c7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
mysql-test/r/xml.result
mysql-test/r/xml.result
+3
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+5
-0
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+1
-1
No files found.
mysql-test/r/xml.result
View file @
701110c9
...
...
@@ -546,3 +546,6 @@ select extractvalue('<a>A</a>','/<a>');
ERROR HY000: XPATH syntax error: '>'
select extractvalue('<a><b>b</b><b!>b!</b!></a>','//b!');
ERROR HY000: XPATH syntax error: '!'
select extractvalue('<A_B>A</A_B>','/A_B');
extractvalue('<A_B>A</A_B>','/A_B')
A
mysql-test/t/xml.test
View file @
701110c9
...
...
@@ -243,3 +243,8 @@ select extractvalue('<a>A</a>','/<a>');
#
--
error
1105
select
extractvalue
(
'<a><b>b</b><b!>b!</b!></a>'
,
'//b!'
);
#
# Bug #16320 XML: extractvalue() won't accept names containing underscores
#
select
extractvalue
(
'<A_B>A</A_B>'
,
'/A_B'
);
sql/item_xmlfunc.cc
View file @
701110c9
...
...
@@ -1272,7 +1272,7 @@ my_xident_body(int c)
return
(((
c
)
>=
'a'
&&
(
c
)
<=
'z'
)
||
((
c
)
>=
'A'
&&
(
c
)
<=
'Z'
)
||
((
c
)
>=
'0'
&&
(
c
)
<=
'9'
)
||
((
c
)
==
'-'
));
((
c
)
==
'-'
)
||
((
c
)
==
'_'
)
);
}
...
...
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