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

RENAME TABLE to another schema does not work if table has triggers

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Triggers
    • None

    Description

      create database test2;
      use test2;
      create table t1 (id int);
      create trigger t1_bi before insert on t1 for each row set @a:=new.id;
      create database test3;
      rename table test2.t1 to test3.t1;
      ERROR 1435 (HY000): Trigger in wrong schema

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              monty Michael Widenius
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.