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

parser compatibility problems #31972

Closed
okJiang opened this issue Jan 26, 2022 · 1 comment · Fixed by #32176
Closed

parser compatibility problems #31972

okJiang opened this issue Jan 26, 2022 · 1 comment · Fixed by #32176
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@okJiang
Copy link
Member

okJiang commented Jan 26, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

run sql

CREATE TABLE `tbl11`(`a` INT(11) NOT NULL, `b` INT(11), PRIMARY KEY (`a`(0))) CHARSET UTF8MB4 COLLATE UTF8MB4_BIN;

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

ERROR 1391 (HY000): Key part 'a' length cannot be 0

from MySQL

3. What did you see instead (Required)

Query OK, 0 rows affected (0.01 sec)

4. What is your TiDB version? (Required)

Server version: 5.7.25-TiDB-v5.0.2 TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible

@okJiang okJiang added the type/bug The issue is confirmed as a bug. label Jan 26, 2022
@bb7133 bb7133 added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jan 28, 2022
@mjonss
Copy link
Contributor

mjonss commented Feb 7, 2022

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate 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