You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEt0(c0 INT);
INSERT INTO t0(c0) VALUES (2);
SELECTt0.c0FROM t0 WHERE (NOT NOT t0.c0) =t0.c0; -- expected: {}, actual: {2}
Unexpectedly, a row is fetched. The predicate (NOT NOT t0.c0) = t0.c0. should evaluate to false. I suspect that the double negation is removed, which is incorrect, since NOT NOT t0.c0 should evaluate to 1, and not to 2.
Here is the environment that I used:
mysql>select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v3.0.12
Git Commit Hash: 8c4696b3f3408c61dd7454204ddd67c93501609a
Git Branch: heads/refs/tags/v3.0.12
UTC Build Time: 2020-03-1609:56:22
GoVersion: go version go1.13 linux/amd64
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+1 row inset (0.00 sec)
The text was updated successfully, but these errors were encountered:
SunRunAway
added
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
and removed
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
labels
Mar 30, 2020
Consider the following statements:
Unexpectedly, a row is fetched. The predicate
(NOT NOT t0.c0) = t0.c0
. should evaluate to false. I suspect that the double negation is removed, which is incorrect, sinceNOT NOT t0.c0
should evaluate to1
, and not to2
.Here is the environment that I used:
The text was updated successfully, but these errors were encountered: