Closed keeplearning20221 closed 9 months ago
Hi @djshow832 Can I take this issue?
Hello @djshow832 @keeplearning20221 @aytrack ! Seems it's allowing to have empty database and table names. So how would you like to solve it? When parsing stmt or have a later on validation?
I'd like to fix this issue, can you assign me? @djshow832 @keeplearning20221
/assign
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table ``.ttt2(id int key);
2. What did you expect to see? (Required)
mysql> create table ``.ttt2(id int key); ERROR 1102 (42000): Incorrect database name ''
3. What did you see instead (Required)
mysql> create table ``.ttt2(id int key); Query OK, 0 rows affected (0.03 sec)
4. What is your TiDB version? (Required)
Release Version: v7.4.0-alpha-21-gcd4cbcd742 Edition: Community Git Commit Hash: https://github.com/pingcap/tidb/commit/cd4cbcd7422f133d88ffc87a41d077d9d8b07bb1 Git Branch: master UTC Build Time: 2023-08-07 08:11:41 GoVersion: go1.20.5 Race Enabled: false Check Table Before Drop: false Store: unistore |