We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
select null or 0.1; select 0 or 0.1; select 1 and 0.1;
but in tidb, the result is:
NULL 0 0
In mysql, the result is:
1 1 1
Perhaps Because tidb will round float before logic processing.
tidb-server -V
select tidb_version();
mysql> select tidb_version(); +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | tidb_version() | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Release Version: v3.0.0 Git Commit Hash: 60965b006877ca7234adaced7890d7b029ed1306 Git Branch: HEAD UTC Build Time: 2019-06-28 12:14:07 GoVersion: go version go1.12 linux/amd64 Race Enabled: false TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e Check Table Before Drop: false | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)
mysql is 5.7
The text was updated successfully, but these errors were encountered:
Duplicate of #11199
Sorry, something went wrong.
No branches or pull requests
Bug Report
but in tidb, the result is:
In mysql, the result is:
Perhaps Because tidb will round float before logic processing.
tidb-server -V
or runselect tidb_version();
on TiDB)?mysql is 5.7
The text was updated successfully, but these errors were encountered: