mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug#16316: XML: extractvalue() is case-sensitive with contains()
xml.result, xml.test: Adding test case. item_xmlfunc.cc: Fixed that Item_nodeset_func derived classes didn't take into account charset of the XML value and always worked using "binary" charset. sql/item_xmlfunc.cc: Bug#16316: XML: extractvalue() is case-sensitive with contains() Fixed that Item_nodeset_func derived classes didn't take into account charset of the XML value and always worked using "binary" charset. mysql-test/t/xml.test: Adding test case. mysql-test/r/xml.result: Adding test case.
This commit is contained in:
parent
c325142448
commit
c76459aca9
3 changed files with 26 additions and 1 deletions
|
|
@ -254,3 +254,11 @@ select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant-or-self::*');
|
|||
# Bug #16320 XML: extractvalue() won't accept names containing underscores
|
||||
#
|
||||
select extractvalue('<A_B>A</A_B>','/A_B');
|
||||
|
||||
#
|
||||
# Bug#16316: XML: extractvalue() is case-sensitive with contains()
|
||||
#
|
||||
select extractvalue('<a>Jack</a>','/a[contains(../a,"J")]');
|
||||
select extractvalue('<a>Jack</a>','/a[contains(../a,"j")]');
|
||||
select extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin);
|
||||
select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue