[MDEV-11205] UDF_ARGS "attribute_lengths" incorrect value Created: 2016-11-01 Updated: 2017-07-18 Resolved: 2017-07-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.58 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Sidorov | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
Arch Linux |
||
| Description |
|
I try to use User Defined Function lib_mysqludf_json from https://github.com/mysqludf/lib_mysqludf_json with MariaDB 10.1.18 and found an incorrect behavior of UDF_ARGS attribute_lengths.
Example:
That's correct. When you use SELECT json_object(citizen_id AS citizen_id) FROM ...
That's also correct. But when you use SELECT json_object(citizen_id) FROM ...
That's incorrect. Correct value of attribute_lengths[0] is 10. That's not reproducable on MySQL. This is not lib_mysqludf_json incorrect behavior, it just uses standart struct UDF_ARGS. |
| Comments |
| Comment by Elena Stepanova [ 2016-12-01 ] | ||||||||||||||||||||
|
Thanks for the report. Same in MySQL 5.5, but not reproducible with MySQL 5.6.
Both MySQL 5.7 and MariaDB 10.2 have native JSON_OBJECT, so it's not applicable there. | ||||||||||||||||||||
| Comment by Alexey Botchkov [ 2017-07-18 ] | ||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2017-July/011308.html |