-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Autoid value is incorrect when field type is float or double #11109
Labels
type/bug
The issue is confirmed as a bug.
Comments
Thanks for report and contribution. BTW, the other case may have the same problem, I just test update: use test;
create table t1(id int primary key, n float auto_increment, key I_n(n));
insert into t1 set id=1;
update t1 set n=n+1;
insert into t1 set id=2;
select * from t1;
+----+--------------+
| id | n |
+----+--------------+
| 1 | 2.0 |
| 2 | 4.611686e+18 |
+----+--------------+ |
I will take a look. |
nange
added a commit
to nange/tidb
that referenced
this issue
Jul 11, 2019
lzmhhh123
pushed a commit
to lzmhhh123/tidb
that referenced
this issue
Jul 23, 2019
lzmhhh123
pushed a commit
to lzmhhh123/tidb
that referenced
this issue
Jul 23, 2019
lzmhhh123
pushed a commit
to lzmhhh123/tidb
that referenced
this issue
Jul 23, 2019
lzmhhh123
pushed a commit
to lzmhhh123/tidb
that referenced
this issue
Jul 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: