-
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
Builtin function "CAST" compatibilities #3691
Comments
MySQL:
TiDB:
see sql-mode-strict
|
MySQL:
TiDB:
|
Mysql:
TiDB:
see https://dev.mysql.com/doc/refman/5.7/en/precision-math-decimal-characteristics.html the maximum ranges of values for the arguments is also not considered(open a new issue #3912, will be solved there): MySQL:
TiDB:
|
MySQL:
TiDB:
|
MySQL:
TiDB:
|
MySQL:
TiDB:
will be solved in #3923 |
MySQL:
TiDB:
will be solved in #3917 |
MySQL:
TiDB:
see #3762 |
select cast(cast(1-2 as unsigned) as signed integer);
MySQL:
mysql> select cast(cast(1-2 as unsigned) as signed integer);
+-----------------------------------------------+
| cast(cast(1-2 as unsigned) as signed integer) |
+-----------------------------------------------+
| -1 |
+-----------------------------------------------+
1 row in set (0.00 sec)
TiDB:
mysql> select cast(cast(1-2 as unsigned) as signed integer);
ERROR 1690 (22003): constant 18446744073709551615 overflows bigint
The text was updated successfully, but these errors were encountered: