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

too long values in mysql.innodb_table_stats.table_name

    Details

      Description

      create table extralongname_extralongname_extralongname_extralongname_ext (
        id int(10) unsigned not null,
        created_date date not null,
        created timestamp not null,
        primary key (created,id,created_date)
      ) engine=innodb stats_persistent=1 default charset=latin1
        partition by range (year(created_date))
        subpartition by hash (month(created_date))
        subpartitions 2 (
          partition p2007 values less than (2008),
          partition p2008 values less than (2009)
        );
      select length(table_name) from mysql.innodb_table_stats;
      

      The last statement returns 79, even though the column is defined as varchar(64).

      This can potentially fail in the upper layer in many different ways. For example, it makes copying ALTER TABLE to fail with "duplicate key value".

      The same applies to innodb_index_stats too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                serg Sergei Golubchik
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: