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

frm is reported corrupted after ER_EXPRESSION_REFERS_TO_UNINIT_FIELD

Details

    Description

      CREATE TABLE t1 (a INT,b INT AS (b is NULL) VIRTUAL);
      

      Leads to:

      10.7.0 71ed8c136fa203b9b3a678a6d5cc72235ef73ef7 (Debug)

      10.7.0-dbg>CREATE TABLE t1 (a INT,b INT AS (b is NULL) VIRTUAL);
      ERROR 4029 (01000): Expression for field `b` is referring to uninitialized field `b`
      

      Yet;

      10.7.0 71ed8c136fa203b9b3a678a6d5cc72235ef73ef7 (Debug)

      2021-07-28 20:18:44 4 [ERROR] mysqld: Incorrect information in file: './test/t1.frm'
      

      May only be a cosmetic issue (i.e. the error in the error log should not be shown as the table is never created successfully).

      If no underlying bug, propose to not show (i.e. prevent) any error in error log (so as to not confuse DBA's).

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Nikita Malyavin made transition -
            Open In Progress
            71d 5h 2m 1
            Nikita Malyavin made transition -
            In Progress In Review
            4m 34s 1
            Oleksandr Byelkin made transition -
            In Review Stalled
            5d 17h 49m 1
            Nikita Malyavin made transition -
            Stalled Closed
            7d 3h 45m 1

            People

              nikitamalyavin Nikita Malyavin
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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