Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexes with comments are ignored #128

Closed
dzintb opened this issue Feb 12, 2018 · 5 comments
Closed

Indexes with comments are ignored #128

dzintb opened this issue Feb 12, 2018 · 5 comments

Comments

@dzintb
Copy link

dzintb commented Feb 12, 2018

Expected behavior

Index with comment is visible in "Indexes" tab.

Current behavior

Index with comment is not visible in "Indexes" tab.

Failure information

Indexes with comments are ignored by HeidiSQL. They are not visible in "Indexes" and "CREATE code" tab.

Steps to reproduce

  1. Create table:
CREATE TABLE `index_test` (
  `nr1` int,
  `nr2` int,
  KEY `hidden_index` (`nr1`) COMMENT 'some comment',
  KEY `visible_index` (`nr2`)
);
  1. Check if both indexes are created with SHOW CREATE TABLE index_test;:
CREATE TABLE `index_test` (
  `nr1` int(11) DEFAULT NULL,
  `nr2` int(11) DEFAULT NULL,
  KEY `hidden_index` (`nr1`) COMMENT 'some comment',
  KEY `visible_index` (`nr2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1. Check "Indexes" tab:
    1

  2. Check "CREATE code" tab:
    2

Context

  • HeidiSQL version: 9.5.0.5196 (64 Bit)
  • Database system + version: MariaDB 10.1.11
  • Operating system: Windows 10
@ansgarbecker
Copy link
Collaborator

Confirmed

@rentalhost
Copy link
Contributor

Possible solution: create a new column like Comment on Index manager tab.

@blakesu
Copy link

blakesu commented May 28, 2019

encounter this issue too.

@ansgarbecker
Copy link
Collaborator

This issue is actually fixed - a commented index is no longer hidden. Just the comments are ignored.

@ansgarbecker
Copy link
Collaborator

Next build supports editing the comment of an index. However, you may need to activate the comment column first:

grafik

@ansgarbecker ansgarbecker added this to the v12.1 milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants