Bug #109336 | Workbench crashes when editing a table with a JSON column | ||
---|---|---|---|
Submitted: | 12 Dec 2022 1:31 | Modified: | 27 Dec 2022 13:18 |
Reporter: | Maks Nowak | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 8.0.31 | OS: | Windows (Windows 10 Version 21H2) |
Assigned to: | CPU Architecture: | Any (AMD Ryzen 7 2700) | |
Tags: | json |
[12 Dec 2022 1:31]
Maks Nowak
[23 Dec 2022 12:17]
MySQL Verification Team
Hello Maks Nowak, Thank you for the bug report. Could you please share us the table structure with sample data to reproduce this issue at our end? Thanks. Regards, Ashwini Patil
[24 Dec 2022 0:16]
Maks Nowak
Before adding the JSON row, the table definition is as follows: CREATE TABLE `games` ( `game_id` int(6) unsigned zerofill NOT NULL AUTO_INCREMENT, PRIMARY KEY (`game_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci Then I add a new field: I name it "settings" and select the "JSON" datatype. Then I click apply and that's when it crashes. Checking the table definition again returns this statement: CREATE TABLE `games` ( `game_id` int(6) unsigned zerofill NOT NULL AUTO_INCREMENT, `settings` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`settings`)), PRIMARY KEY (`game_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci Thank you, Maks
[27 Dec 2022 13:18]
MySQL Verification Team
Hello Maks Nowak, Thank you for the details. I tried to reproduce your issue on windows 10 with workbench 8.0.31 using table provided and followed exact steps but I am not seeing any issues at my end. Regards, Ashwini Patil
[27 Dec 2022 13:24]
MySQL Verification Team
8.0.31 test results
Attachment: 109336_test_results.png (image/png, text), 160.41 KiB.