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

Wrong behavior when insert default value #7061

Closed
winoros opened this issue Jul 16, 2018 · 0 comments · Fixed by #7068
Closed

Wrong behavior when insert default value #7061

winoros opened this issue Jul 16, 2018 · 0 comments · Fixed by #7068
Assignees
Labels
sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@winoros
Copy link
Member

winoros commented Jul 16, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
create table t(a int default 1, b int default 2);
insert into t (b) values(default);
  1. What did you expect to see?

One row which a is 1, b is 2.

  1. What did you see instead?

One row which a is 1, b is 1.

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

cf8a412

@winoros winoros added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner labels Jul 16, 2018
@winoros winoros assigned winoros and unassigned winoros Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant