Skip to content

alter table rename table name to untracked table name, new data copy to untracked table #790

Closed
@asiroliu

Description

@asiroliu

Description

Steps to reproduce the issue

  1. source MySQL prepare data
SQL> CREATE TABLE old (id INT(11) AUTO_INCREMENT PRIMARY KEY);
SQL> INSERT old VALUES ();
SQL> INSERT old VALUES ();
SQL> INSERT old VALUES ();
  1. create dtle job
{
  "replicate_do_db": [
    {
      "table_schema": "action_db_1",
      "tables": [
        {
          "table_name": "old"
        }
      ]
    }
  ]
}
  1. rename table name use alter table, ddl rename can not cause this issue
SQL> ALTER TABLE old RENAME TO new;
  1. check dest MySQL, the table new is exist.
  2. insert data to src MySQL table new

Describe the results you received

the data copy to dest MySQL table new

Describe the results you expected

the data should not copy to dest MySQL table new

Output of ./dtle version:**

9.9.9.9-master-9b55df4

Metadata

Metadata

Assignees

No one assigned

    Labels

    DDLDDL bug or issueVERIFIEDverified issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions