mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
xml.result, xml.test:
Adding test. item_xmlfunc.cc: Bug #18171 XML: ExtractValue: the XPath position() function crashes the server! Disallowing use of position() and last() without context.
This commit is contained in:
@@ -277,3 +277,12 @@ 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")]');
|
||||
|
||||
#
|
||||
# Bug #18171 XML: ExtractValue: the XPath position()
|
||||
# function crashes the server!
|
||||
#
|
||||
--error 1105
|
||||
select extractValue('<e>1</e>','position()');
|
||||
--error 1105
|
||||
select extractValue('<e>1</e>','last()');
|
||||
|
||||
Reference in New Issue
Block a user