Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-35901

Flagged corruption / Wrong count upon CHECK on table with indexed virtual column

Details

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t (a VARCHAR(64), b VARCHAR(64) AS (a) VIRTUAL, KEY(b(4)), KEY(b)) ENGINE=InnoDB;
      INSERT INTO t (a) VALUES ('foobar');
      CHECK TABLE t EXTENDED;
      DROP TABLE t;
      

      10.6 fa74c1a40ff75ab8041103b81ec3fc44ef286de1

      CREATE TABLE t (a VARCHAR(64), b VARCHAR(64) AS (a) VIRTUAL, KEY(b(4)), KEY(b)) ENGINE=InnoDB;
      INSERT INTO t (a) VALUES ('foobar');
      CHECK TABLE t EXTENDED;
      Table	Op	Msg_type	Msg_text
      test.t	check	Warning	InnoDB: Index 'b' contains 0 entries, should be 1.
      test.t	check	error	Corrupt
      DROP TABLE t;
      

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            nikitamalyavin Nikita Malyavin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.