Closed H0w4rd closed 1 year ago
Please contact us by email at ideramysqlsupport@idera.com about this. The way we use GitHub is strictly as an issue-tracker for known issues and not for support or discussions. This is necessary in order to keep the system manageable.
But this is an issue. Could you please reopen it? I will provide more information how to reproduce the problem.
You can reproduce the problem when you create the following table:
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`kind` varchar(50) NOT NULL,
`color` varchar(100) DEFAULT NULL,
`background_color` varchar(100) DEFAULT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`created_user_id` int(11) unsigned DEFAULT NULL,
`changed` datetime DEFAULT NULL,
`changed_user_id` int(11) unsigned DEFAULT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT 1,
`not_deleted` tinyint(1) unsigned DEFAULT 1 COMMENT 'Nesmazaný' CHECK (`not_deleted` = 1 or `not_deleted` is null),
PRIMARY KEY (`id`),
UNIQUE KEY `tag_n` (`name`,`kind`,`not_deleted`)
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8
and then try to right-click on it in the tree on the left side and select Alter table (F6).
Version 13.1.9 disappeared immediatelly with the error (written above) in the event log. Version 13.2.0 seems to be able to recover from it at first, but won't show the table, but second time it crashes anyway. Tested on MariaDB 10.4 and 10.5.
The problem seems to be caused together by the comment containing 'ý' as well as by the check constraint. I hope you can fix the problem because I would like to start using CHECK constraints.
When I try to edit a table containing a column with CHECK CONSTRAINT, SQLyog crashes:
MariaDB 10.4