[MDEV-20674] Reuse val_native() in ExtractValue() and UpdateXML() Created: 2019-09-26 Updated: 2019-09-26 Resolved: 2019-09-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, XML Functions |
| Fix Version/s: | 10.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Currently the classes that implement SQL functions ExtractValue() and UpdateXML() use a special virtual Item method to transfer node sets values:
The top level Item returns 0, and the following classes override this method:
val_raw() is not used anywhere outside of the metioned XML functions implementation. Let's remove Item::val_raw() and replace the XML functions relatec classes to use the generic method val_native(). This is needed to move XML functions into a function collection plugin later. |