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

Panic when altering the PK on a table with column defaults #3788

Closed
fulghum opened this issue Jul 8, 2022 · 0 comments · Fixed by dolthub/go-mysql-server#1111
Closed

Panic when altering the PK on a table with column defaults #3788

fulghum opened this issue Jul 8, 2022 · 0 comments · Fixed by dolthub/go-mysql-server#1111
Assignees
Labels
bug Something isn't working

Comments

@fulghum
Copy link
Contributor

fulghum commented Jul 8, 2022

The following statements trigger a panic in Dolt because Type() is called on UnresolvedColumnDefault.

create table t (id varchar(128), c1 int not null default '-1', c2 timestamp not null default CURRENT_TIMESTAMP, c3 int not null default (id));
alter table t add primary key `prikey`(id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant