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

Unexpect error when use DEFAULT() function in INSERT ... SET ... statement #13189

Closed
Deardrops opened this issue Nov 6, 2019 · 2 comments
Closed
Labels
type/bug The issue is confirmed as a bug.

Comments

@Deardrops
Copy link
Contributor

Deardrops commented Nov 6, 2019

Bug Report

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 t1(a int default 1, b int default 2);
insert into t1 set b = default(a);
select * from t1;
  1. What did you expect to see?

image

  1. What did you see instead?

image

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
Release Version: v4.0.0-alpha-730-g8d545a180
@Deardrops Deardrops added the type/bug The issue is confirmed as a bug. label Nov 6, 2019
@Deardrops
Copy link
Contributor Author

Deardrops commented Nov 6, 2019

Related issue: #13071 #12471 #11939

@Deardrops Deardrops changed the title Unexpect error when use DEFAULT() function in insert ... set ... statement Unexpect error when use DEFAULT() function in INSERT ... SET ... statement Nov 6, 2019
@Deardrops
Copy link
Contributor Author

UPDATE / REPLACE statement has same issue.

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

No branches or pull requests

1 participant