You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql> create table test(a bigintnot null default nextval(seq),b char(3),primary key (a));
ERROR 1171 (42000): All parts of a PRIMARY KEY must be NOT NULL; if you need NULLin a key, use UNIQUE instead
4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)
master branch
The text was updated successfully, but these errors were encountered:
AndrewDi
changed the title
P0-[4.0 bug hunting]-[Sequence]-can not create table when primary key has sequence as default value
P1-[4.0 bug hunting]-[Sequence]-can not create table when primary key has sequence as default value
Apr 15, 2020
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. What did you do?
2. What did you expect to see?
create table success
3. What did you see instead?
4. What version of TiDB are you using? (
tidb-server -V
or runselect tidb_version();
on TiDB)master branch
The text was updated successfully, but these errors were encountered: