[MDEV-32790] Output result in show create table for mysql_json type should be longtext Created: 2023-11-13 Updated: 2024-01-11 Resolved: 2024-01-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, JSON |
| Affects Version/s: | 10.5.22 |
| Fix Version/s: | 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anel Husakovic | Assignee: | Anel Husakovic |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Using above query we will get an syntax error
However, if instead of json, longtext is specified, than the result is good. So, JSON datatype field shouldn't have any character set and collation, except of default utf8mb4|utf8mb4_bin. |
| Comments |
| Comment by Vicențiu Ciorbaru [ 2023-11-28 ] |
|
As mentioned in the PR: We shouldn't allow create table (c mysql_json) in the first place. The datatype comment change is ok. |
| Comment by Anel Husakovic [ 2023-12-01 ] |
|
Hi cvicentiu, |
| Comment by Anel Husakovic [ 2024-01-11 ] |
|
Pushed to 10.5 with 9a5f85dcb |