-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
CAST float is not compatible with MySQL #9871
Comments
Yes, I think to raise an error when overflow is better. Thanks for your report, @wjhuang2016 ! |
@jackysp I'm glad you agree with me.
Though |
What do you think? @XuHuaiyu |
I think it's ok. @jackysp And |
Yeah, My MySQL version is 8.0.15 |
I am actually a bit surprised by the MySQL 8.0 behavior. Because strict mode is actually Just as a general rule, make sure you test context with/without a table. i.e.
(it makes no difference in this specific case.) |
I guess that when dealing with |
@wjhuang2016 I guess we could close this issue as a won't fix and create a new issue that describes more explicitly about fixing the overflowing behavior of casting intergers? |
I think it's ok since this is not a big problem. |
/label type/wontfix |
Please help close it~ |
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
I not sure whether the result of MySQL is more reasonable. I think raise a error when overflow is better than truncate it.
In MySQL 8.0.15
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: