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

alter table failed with bit column #11800

Closed
tohghua opened this issue Aug 20, 2019 · 5 comments · Fixed by #12008
Closed

alter table failed with bit column #11800

tohghua opened this issue Aug 20, 2019 · 5 comments · Fixed by #12008
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@tohghua
Copy link

tohghua commented Aug 20, 2019

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    create table t (i int, b bit);
    alter table t modify b bit first;

  2. What did you expect to see?
    sql runs successfully.

  3. What did you see instead?
    SQL Error [1105] [HY000]: unsupported modify column unsigned false not match origin true

  4. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    Release Version: v2.1.16
    Git Commit Hash: 86ad1a9
    Git Branch: HEAD
    UTC Build Time: 2019-08-15 10:21:49
    GoVersion: go version go1.12 linux/amd64
    Race Enabled: false
    TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
    Check Table Before Drop: false

@tohghua tohghua added the type/bug The issue is confirmed as a bug. label Aug 20, 2019
@zz-jason
Copy link
Member

@zimulala PTAL

@zimulala zimulala self-assigned this Aug 23, 2019
@zimulala
Copy link
Contributor

@tohghua
Thanks for your feedback!
I will fix it.

@tohghua
Copy link
Author

tohghua commented Aug 23, 2019

@zimulala
Thanks!
This sql also fails:
create table t (i int, b bit);
alter table t modify b int;
alter table t modify b int unsigned;

@tohghua
Copy link
Author

tohghua commented Aug 30, 2019

@zimulala Execuse me, how is it going now?

@zimulala
Copy link
Contributor

zimulala commented Sep 3, 2019

@tohghua

create table t (i int, b bit);
alter table t modify b int;
alter table t modify b int unsigned;

We don't support these DDLs. For support on the "modify/change column" operation, you can refer to the docs.

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

Successfully merging a pull request may close this issue.

3 participants