Details
-
Task
-
Status: In Testing (View Workflow)
-
Critical
-
Resolution: Unresolved
-
None
-
Q1/2026 Server Development, Q2/2026 Server Maintenance, Q2/2026 Server Development, Q3/2026 Server Maintenance, Q3/2026 Server Development, Q4/2026 Server Development
Description
XMLTYPE is use by Oracle for implementing XML database functions. One option is to mimic what Oracle has exactly. Another way is to implement minimal support in the server itself and provide additional features in a stored procedure package. Oracle 19 feature list is here: https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/XMLTYPE.html
This task is about implementing XMLTYPE methods, the syntax like xmltype_expression.extract(), for example
select xmlelement(e, ename).extract ('//text()') from emp; |
Members and static routines supported by XMLType in Oracle:
Member functions:
- createNonSchemaBasedXML
- createSchemaBasedXML
- existsNode
- extract
- getBlobVal
- getClobVal
- getNamespace
- getNumberVal
- getRootElement
- getStringVal
- isFragment
- isSchemaBased
- isSchemaValid
- isSchemaValidated
- transform
Member procedures:
- schemaValidate
- setSchemaValidated
- toObject
Constructors:
- XMLType
Static functions:
- createXML
As the Step 1 the Member functions, to be implemented:
- createNonSchemaBasedXML
- getClobVal
- getNamespace
- getNumberVal
- getRootElement
- getStringVal
- isFragment
The getSchemaURL to be implemented inside MDEV-39125.
Attachments
Issue Links
- blocks
-
MDEV-38691 XMLTYPE: methods - final step
-
- In Progress
-
- is blocked by
-
MDEV-37261 Basic XML data type
-
- Closed
-
- relates to
-
MDEV-42409 Server crashes in THD::get_variable / Item_func_xml_method_getNumberVal::val_real when trigger runs in another connection
-
- Open
-
-
MDEV-42411 XMLTYPE.getNumberVal() returns 0 when a whitespace text node precedes the number
-
- Open
-
-
MDEV-42412 XMLTYPE method call on SP variable is binlogged verbatim in statement format, replica fails with "FUNCTION x.getRootElement does not exist"
-
- Open
-
-
MDEV-42413 CREATE VIEW in a stored procedure accepts an XMLTYPE method call on an SP variable and creates a broken view
-
- Open
-
-
MDEV-42421 XMLTYPE SP variable named like a table alias hides table-qualified columns: wrong result or "FUNCTION t1.a does not exist"
-
- Open
-
-
MDEV-42422 XMLTYPE getRootElement()/getNamespace() value lost when it is the first argument of CONCAT
-
- Open
-