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

Disallow discard tablespace when FK constraint exist and foreign_key_check is enabled

    XMLWordPrintable

Details

    Description

      Discard tablespace break foreign key constraint. So disallow the discard operation when foreign_key_checks
      is enabled.

      CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
      CREATE TABLE t2 (a INT, b TEXT, FOREIGN KEY(a) REFERENCES t1(a),
      FULLTEXT (b))ENGINE=InnoDB;
      ALTER TABLE t2 DISCARD TABLESPACE;
      

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.