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

DDL: admin show next_row_id return empty set #18532

Closed
3pointer opened this issue Jul 14, 2020 · 2 comments
Closed

DDL: admin show next_row_id return empty set #18532

3pointer opened this issue Jul 14, 2020 · 2 comments
Labels
sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@3pointer
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. set @@sql_mode="";
  2. create table t(a int not null, time timestamp not null default '0000-00-00 00:00:00', primary key (a));
  3. admin show t next_row_id;

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

something like that:
+---------+------------+-------------+--------------------+
| DB_NAME | TABLE_NAME | COLUMN_NAME | NEXT_GLOBAL_ROW_ID |
+---------+------------+-------------+--------------------+
| test | t | _tidb_rowid | 1 |
+---------+------------+-------------+--------------------+

3. What did you see instead (Required)

empty set

4. Affected version (Required)

TiDB master branch(v4.0.2 has no such problem)

5. Root Cause Analysis

@3pointer 3pointer added the type/bug The issue is confirmed as a bug. label Jul 14, 2020
@fzhedu
Copy link
Contributor

fzhedu commented Jul 14, 2020

/label component/DDL

@ti-srebot ti-srebot added the sig/sql-infra SIG: SQL Infra label Jul 14, 2020
@tangenta
Copy link
Contributor

It is an expected behavior after #18326. I didn't realize this before. Sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants