Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
SET @s= '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="a" type="xs:string"/></xs:schema>'; |
SET @s2= '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="a"><xs:complexType><xs:attribute name="b" type="xs:string"/></xs:complexType></xs:element></xs:schema>'; |
--echo # BUG if 1
|
SELECT XMLISVALID('<a>&foo;</a>', @s), XMLISVALID('<a>&</a>', @s), XMLISVALID('<a>�</a>', @s), XMLISVALID('<a b="&"/>', @s2); |
--echo # BUG if 1
|
SELECT XMLISVALID('<a b="1" b="2"/>', @s2); |
--echo # BUG if 1
|
SELECT XMLISVALID(' <?xml version="1.0"?><a/>', @s), XMLISVALID(CONCAT('<a>', _binary X'FF', '</a>'), @s); |
--echo # BUG if 0
|
SELECT XMLISVALID('<a xmlns:q="urn:q" b="x"/>', @s2); |
Actual: every BUG if 1 column is 1; the namespace declaration returns 0.
Attachments
Issue Links
- relates to
-
MDEV-41750 XMLISVALID should be 0 returns 1 for strings that are not a single well-formed XML document
-
- In Review
-