[MDEV-15716] ExtractValue and UpdateValue are case sensitive. So working with XML tags is a headache Created: 2018-03-29 Updated: 2018-04-03 Resolved: 2018-04-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | XML Functions |
| Affects Version/s: | 10.2.12, 10.3.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Francisco Dueñas | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Compatibility | ||
| Environment: |
Windows 10 64 bit |
||
| Description |
|
ExtractValue and UpdateValue are case sensitive. So for looking for a certaing Tag in the correct case can be a difficult task. readin MySQL 5.5 and above Manuals, They say that: So how to make those functions to work case insensitive Also we should improve These function's documentation for how o use those functions |
| Comments |
| Comment by Elena Stepanova [ 2018-04-02 ] | |||||||||||||||||||||||||||||||||
|
I also fail to understand what that note in MySQL manual means. The complete fragment says
Which reads to me like ExtractValue should be using the current connection collation while extracting the value. But I don't see it happen (even on MySQL 5.7):
At the same time,
Hopefully bar can clarify what should work how here. | |||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-04-03 ] | |||||||||||||||||||||||||||||||||
|
Tag names are always case sensitive in XML, no matter the current collation is. The current behavior is correct and expected. The manual article is about XPath function contains(). This script demonstrates how the current collation affects XPath contains():
|