[Bug]: 创建表没有报错,但show tables看不到表
Is there an existing issue for the same bug?
- [X] I have checked the existing issues.
Branch Name
1.2-dev
Commit ID
acc56f3
Other Environment Information
- Hardware parameters:
- OS type:
- Others:
阿里云,Dev环境
Actual Behavior
使用两个链接。 两个链接顺序执行如下步骤: 其中一个链接创建表如下:
CREATE TABLE if not exists `account` (
`uid` VARCHAR(128) NOT NULL,
`email` VARCHAR(100) NOT NULL,
`nickname` VARCHAR(100) NOT NULL,
`firstname` VARCHAR(100) NOT NULL,
`lastname` VARCHAR(100) NOT NULL,
`company` VARCHAR(100) NOT NULL,
`organization` VARCHAR(100) NOT NULL,
`login_method` VARCHAR(20) NOT NULL,
`password` VARCHAR(200) DEFAULT NULL,
`register_method` VARCHAR(20) NOT NULL,
`activated` TINYINT NOT NULL,
`verified_at` DATETIME DEFAULT NULL,
`created_at` DATETIME(3) DEFAULT NULL,
`updated_at` DATETIME(3) DEFAULT NULL,
`deleted_at` DATETIME(3) DEFAULT NULL,
`mobile_number` VARCHAR(20) DEFAULT NULL,
`is_blocked` TINYINT NOT NULL,
`type` TINYINT NOT NULL,
`source` TINYINT NOT NULL,
`purpose` VARCHAR(300) NOT NULL,
`agreed_to_policy` TINYINT NOT NULL,
`provider` TINYINT NOT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `uniq_org` (`organization`),
UNIQUE KEY `mail_method_idx` (`email`,`login_method`)
);
另一个链接执行如下命令:
select * from test123.account;
其中第一个链接使用的DB是test123; 报错表不存在,mysql Client端链接查看确实不存在,但并未报错创建表失败,而是报错表不存在:
(1064, 'SQL parser error: table "account" does not exist')
但创建成功后表并不存在
Expected Behavior
as Actual Behavior
Steps to Reproduce
as Actual Behavior
Additional information
No response
注: mysql正常 测试脚本: https://github.com/matrixone-cloud/mocloud-test-tool/blob/main/mo-sql-test-cases/issue-19043/test.py
未投入
未投入
不是bug. 已经修改测试脚本。
https://github.com/matrixone-cloud/mocloud-test-tool/pull/1
https://pymysql.readthedocs.io/en/latest/modules/connections.html
process on
process on
验证无误