webyog / sqlyog-community

Webyog provides monitoring and management tools for open source relational databases. We develop easy-to-use MySQL client tools for performance tuning and database management. Webyog's solutions include SQL Diagnostic Manager for MySQL performance optimization and SQLyog for MySQL administration. More than 35,000 companies (including Amazon, IBM, Salesforce, AT&T, eBay, and GE) and 2.5 million users rely on Webyog's solutions to provide valuable insights into their databases. Webyog is an Idera, Inc. company.
https://webyog.com/
GNU General Public License v2.0
2.16k stars 318 forks source link

SQLyog closes abruptly on altering a table having a column with CHECK constraint with a COMMENT #2311

Closed sibwy closed 6 months ago

sibwy commented 1 year ago

Reproducible test case:

  1. Create the following table,
    CREATE TABLE `test` (
    `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
    `val` INT(11)COMMENT 'abcd' CHECK (`val` = 1 OR `val` IS NULL),
    PRIMARY KEY (`id`)
    ) ENGINE=INNODB DEFAULT CHARSET=utf8;
  2. Select the respective table in the 'Object Browser' and click on 'Alter Table'.

This issue is reproducible with MariaDB 10.8.3 (and v10.4 and v10.5 as reported by the user) in SQLyog v13.2.0. The issue is not reproducible if the COMMENT is not passed to the column with the 'CHECK' constraint.

The user report can be found in SF >> 00979220

sibwy commented 6 months ago

Fixed in SQLyog v13.2.1