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

ADD PERIOD FOR SYSTEM_TIME succeeds without action

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (a INT);
      INSERT INTO t (a) VALUES (1),(2);
      ALTER TABLE t ADD PERIOD FOR SYSTEM_TIME(s, e);
      SHOW CREATE TABLE t;
       
      DROP TABLE t;
      

      ALTER here pretends to succeed even though columns s and e don't exist, and the table isn't versioned.

      10.4 7d7ea799

      ALTER TABLE t ADD PERIOD FOR SYSTEM_TIME(s, e);
      SHOW CREATE TABLE t;
      Table	Create Table
      t	CREATE TABLE `t` (
        `a` int(11) DEFAULT NULL
      ) ENGINE=MyISAM DEFAULT CHARSET=latin1
      

      Attachments

        Activity

          People

            nikitamalyavin Nikita Malyavin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.