We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
drop table if exists t1; create table t1(c1 int key, c2 int); mysql> select c1 from t1; Field 1: `c1` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: LONG Collation: binary (63) Length: 11 Max_length: 0 Decimals: 0 Flags: NOT_NULL PRI_KEY NUM
Do the alter table
alter table
ALTER TABLE t1 CHANGE c1 c1 INT NOT NULL;
Check the flags again
mysql> select c1 from t1; Field 1: `c1` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: LONG Collation: binary (63) Length: 11 Max_length: 0 Decimals: 0 Flags: NOT_NULL PRI_KEY NO_DEFAULT_VALUE NUM
There will be a new NO_DEFAULT_VALUE NUM on the primary key column but we changed nothing.
NO_DEFAULT_VALUE NUM
A new flag NO_DEFAULT_VALUE is added onto the new column.
NO_DEFAULT_VALUE
Flags are the same after alter table for the primary key column.
release-4.0 2862cd7
The text was updated successfully, but these errors were encountered:
@bb7133 @wjhuang2016 PTAL
Sorry, something went wrong.
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Do the
alter table
Check the flags again
There will be a new
NO_DEFAULT_VALUE NUM
on the primary key column but we changed nothing.2. What did you expect to see? (Required)
A new flag
NO_DEFAULT_VALUE
is added onto the new column.3. What did you see instead (Required)
Flags are the same after alter table for the primary key column.
4. What is your TiDB version? (Required)
release-4.0 2862cd7
The text was updated successfully, but these errors were encountered: