Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error string in Incorrect partition name #44967

Closed
mjonss opened this issue Jun 26, 2023 · 1 comment · Fixed by #45078
Closed

Bad error string in Incorrect partition name #44967

mjonss opened this issue Jun 26, 2023 · 1 comment · Fixed by #45078
Labels
component/tablepartition This issue is related to Table Partition of TiDB. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@mjonss
Copy link
Contributor

mjonss commented Jun 26, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (a int) partition by list (a) (partition `s1 s2 ` values in (0));

2. What did you expect to see? (Required)

Incorrect partition name

3. What did you see instead (Required)

Incorrect partition name%!(EXTRA string=s1 s2 )

4. What is your TiDB version? (Required)

tidb_version(): Release Version: v7.1.0
Edition: Community
Git Commit Hash: 635a4362235e8a3c0043542e629532e3c7bb2756
Git Branch: heads/refs/tags/v7.1.0
UTC Build Time: 2023-05-30 10:50:03
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
@mjonss mjonss added type/bug The issue is confirmed as a bug. component/tablepartition This issue is related to Table Partition of TiDB. labels Jun 26, 2023
@bb7133 bb7133 added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Jun 30, 2023
@River2000i
Copy link
Contributor

enter a error partition name in alter table also get the same error message

mysql> ALTER TABLE t ADD PARTITION (PARTITION `s1 s3 ` VALUES IN (5));
ERROR 1567 (HY000): Incorrect partition name%!(EXTRA string=s1 s3 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tablepartition This issue is related to Table Partition of TiDB. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants