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

Virtual columns contains grarbage

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2.25, 10.2, 10.3, 10.4
    • 10.4
    • None
    • None

    Description

      There is a garbage in virutal column in big tables with utf8 encoding.
      Table:

      CREATE TABLE clients_copy4 (
          id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
          col1 VARCHAR(255) NOT NULL DEFAULT '',
          col2 VARCHAR(255) NOT NULL DEFAULT '',
          col3 VARCHAR(32) NULL DEFAULT NULL,
          col_virtual VARCHAR(255) AS (concat(col1,' ',col2,' (',ifnull(col3,''),')')) VIRTUAL
      )ENGINE=InnoDB
       
      for($i=0; $i < 14000; $i++){
          ENV::$dbi->insert("INSERT INTO clients_copy4(col1, col2, col3) VALUES ('мама', 'мыла', 'раму')");
      }
      

      Query:

      SELECT id, col_virtual  FROM clients_copy4 ORDER BY col_virtual;
      

      Result:
      http://prntscr.com/od0vcs

      If table contains less than 14k rows - it works ok, only big table has this bug.

      Attachments

        Activity

          People

            nikitamalyavin Nikita Malyavin
            dart_wader Mykhailo Pashchenko
            Votes:
            1 Vote for this issue
            Watchers:
            6 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.