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

Should not add an index of length 0 to columns of type Blob, text, etc. #11049

Closed
zimulala opened this issue Jul 3, 2019 · 4 comments
Closed
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug.

Comments

@zimulala
Copy link
Contributor

zimulala commented Jul 3, 2019

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
create table t(a blob(10), index(a(0)));
  1. What did you expect to see?
mysql> create table t(a blob(10), index(a(0)));
ERROR 1391 (HY000): Key part 'a' length cannot be 0
  1. What did you see instead?
tidb> create table t(a blob(10), index(a(0)));
Query OK, 0 rows affected (0.01 sec)
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    ["Release Version"=v3.0.0-rc.1-264-gcb23b524a]
    ["Git Commit Hash"=cb23b524accce9ff1d1168acb0b5a102f3e7a22c]
@tiancaiamao
Copy link
Contributor

Would you like to handle it? if so, you may assign this issue to yourself. @zimulala

@zimulala zimulala added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. component/DDL-need-LGT3 labels Feb 13, 2020
@zimulala
Copy link
Contributor Author

We want it to return an error.

@zimulala zimulala added type/bug The issue is confirmed as a bug. and removed type/compatibility labels Feb 13, 2020
@Rustin170506
Copy link
Member

Rustin170506 commented Feb 14, 2020

I am working on it.🤓

@zimulala
Copy link
Contributor Author

@Rustin-Liu
Thank you for your participation!

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. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants