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

Auto_increment is not compatible with MySQL #13032

Closed
ChenPeng2013 opened this issue Oct 30, 2019 · 4 comments · Fixed by #14755
Closed

Auto_increment is not compatible with MySQL #13032

ChenPeng2013 opened this issue Oct 30, 2019 · 4 comments · Fixed by #14755
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

@ChenPeng2013
Copy link
Contributor

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 t2(a int auto_increment, b int key);
  1. What did you expect to see?
    mysql 8.0.17
    image

  2. What did you see instead?
    tidb
    image

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

Release Version: v2.1.17-41-g8e80122af
Git Commit Hash: 8e80122af807c402cc7ca26adde4d14e9fa7f9b9
Git Branch: HEAD
UTC Build Time: 2019-10-29 02:19:18
GoVersion: go version go1.13 linux/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
Check Table Before Drop: false
@ChenPeng2013 ChenPeng2013 added the type/bug The issue is confirmed as a bug. label Oct 30, 2019
@SunRunAway
Copy link
Contributor

@bb7133 PTAL

@zimulala
Copy link
Contributor

In MySQL 5.7.20, this SQL also reports errors.
Screen Shot 2020-02-12 at 11 10 29

@zimulala zimulala added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Feb 12, 2020
@Rustin170506
Copy link
Member

I am working on it.

@zimulala
Copy link
Contributor

zimulala commented Feb 13, 2020

@Rustin-Liu
Looking forward to your PR.

Rustin170506 added a commit to Rustin170506/tidb that referenced this issue Feb 13, 2020
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

Successfully merging a pull request may close this issue.

4 participants