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

myisampack returns error when trying to compress a table with index on persistent column

    XMLWordPrintable

Details

    Description

      Myisampack returns error 138 when trying to compress a table with index on persistent column

      test/t2.MYI gave error 138 on open
      

      If there is no key on persistent column, then data is compressed as expected.
      Test:

      let $MYSQLD_DATADIR= `select @@datadir`;
      CREATE TABLE t1 (DATA varchar(10000), d1 VARCHAR(40) AS (substring(DATA,1,40)) persistent, KEY (d1) )engine=myisam;
      INSERT INTO t1 (data) VALUES (NULL),(repeat('a',1000)),('abcabs'),(repeat('b',1000));
       
      flush table t1;
      --exec $MYISAMPACK -sf $MYSQLD_DATADIR/test/t1
      --exec $MYISAMCHK -srnq $MYSQLD_DATADIR/test/t1
      check table t1;
      checksum table t1;
      drop table t1;
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            alice Alice Sherepa
            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.