Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
-
None
Description
The column is of sufficient length, there should be no truncation.
bb-10.5-hf 6dfb3fab2 |
+------+ |
| a |
|
+------+ |
| fo |
|
+------+ |
1 row in set (0.002 sec) |
MySQL 8.0.19 |
MySQL [test]> select * from json_table('{"a":"foo"}',"$" columns(a varchar(8) path '$.a')) x; |
+------+ |
| a |
|
+------+ |
| foo |
|
+------+ |
1 row in set (0.001 sec) |
It works in MariaDB, too, with slightly longer column:
MariaDB [test]> select * from json_table('{"a":"foo"}',"$" columns(a varchar(12) path '$.a')) x; |
+------+ |
| a |
|
+------+ |
| foo |
|
+------+ |
1 row in set (0.002 sec) |
set names doesn't seem to change the outcome, tried latin1, utf8, utf8mb4.
Attachments
Issue Links
- relates to
-
MDEV-17399 Add support for JSON_TABLE
- Closed
-
MDEV-22298 JSON_TABLE: EXISTS PATH value is converted to other types incorrectly
- Closed