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

Support for showing "AUTO_INCREMENT" in "information_schema.tables" #6973

Closed
zimulala opened this issue Jul 3, 2018 · 0 comments · Fixed by #7037
Closed

Support for showing "AUTO_INCREMENT" in "information_schema.tables" #6973

zimulala opened this issue Jul 3, 2018 · 0 comments · Fixed by #7037
Assignees

Comments

@zimulala
Copy link
Contributor

zimulala commented Jul 3, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
tidb>create table t(id int auto_increment primary key, c int);
Query OK, 0 rows affected (0.11 sec)

tidb>insert into t values(1,1);
Query OK, 1 row affected (0.10 sec)

tidb>insert into t values(10000,1);
Query OK, 1 row affected (0.01 sec)

tidb>select * from t;
+-------+------+
| id    | c    |
+-------+------+
|     1 |    1 |
| 10000 |    1 |
+-------+------+
3 rows in set (0.00 sec)

select auto_increment from information_schema.tables where table_name = 't';
  1. What did you expect to see?
+----------------+
| auto_increment |
+----------------+
|          30002 |
+----------------+
1 row in set (0.00 sec)
  1. What did you see instead?
+----------------+
| auto_increment |
+----------------+
|             0 |
+----------------+
1 row in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant