unexpected MultipleTableInfos in rename tables ddl
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
run sql
```
use common_1;
create database common;
create table a (a bigint primary key, b int);
create table b like a;
rename table a to common.c, b to a, common.c to b;
```
### 2. What did you expect to see? (Required)
| BinlogInfo.MultipleTableInfos[i].ID | BinlogInfo.MultipleTableInfos[i].Name |
| -- | -- |
| **136** | **c** |
| 140 | a |
| 138 | b |
### 3. What did you see instead (Required)
| BinlogInfo.MultipleTableInfos[i].ID | BinlogInfo.MultipleTableInfos[i].Name |
| -- | -- |
| **138** | **b** |
| 140 | a |
| 138 | b |
### 4. What is your TiDB version? (Required)
master
Contributor guide
Assessment
This issue has not been assessed yet.