Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
getNumberVal() converts the first non-attribute text node, including whitespace between the XML declaration and the root, or before a child element.
set sql_mode=oracle; |
--echo # BUG if not 7 and 5
|
--delimiter $$
|
DECLARE
|
x XMLTYPE;
|
BEGIN
|
x:= '<?xml version="1.0"?> |
<a>7</a>'; |
SELECT x.getNumberVal(); |
x:= '<a> <b>5</b></a>'; |
SELECT x.getNumberVal(); |
END; |
$$
|
--delimiter ;
|
Result:
x.getNumberVal()
|
0
|
x.getNumberVal()
|
0
|
Warnings:
|
Warning 1292 Truncated incorrect DOUBLE value: ' '
|
Attachments
Issue Links
- relates to
-
MDEV-36261 XMLTYPE: methods - step 1
-
- In Testing
-