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 insert values with a valid column plus somethings #4482
Labels
type/bug
This issue is a bug.
Comments
It seems that mysql treat the column in values() as
|
winkyao
added a commit
that referenced
this issue
Sep 9, 2017
@winoros if the column has not null flag, MySQL will treat it as zero value:
|
In MySQL: drop table if exists t;
create table t (a bigint not null, b bigint not null);
insert into t value(b + 1, a);
insert into t set a = b + a, b = a + 1;
insert into t value(sysdate(), a);
select * from t;
+----------------+----------------+
| a | b |
+----------------+----------------+
| 1 | 1 |
| 0 | 1 |
| 20170913183817 | 20170913183817 |
+----------------+----------------+
3 rows in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MySQL:
TiDB:
panic with logs:
The text was updated successfully, but these errors were encountered: