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
createtablet1 (c1 intprimary key);
insert into t1 (c1) values (100000);
WITH
v2 AS (SELECT (1+ (1/ c1)) as w1 FROM t1)
SELECT
w1, w1 <> cast(1.0as double)
FROM v2 WHERE w1 <> cast(1.0as double)
ORDER BY1,2desc;
2. What did you expect to see? (Required)
when the second column is 0, it should not appear:
in TiDB with unistore:
mysql> WITH
-> v2 AS (SELECT (1 + (1 / c1)) as w1 FROM t1)
-> SELECT
-> w1, w1 <> cast(1.0 as double)
-> FROM v2 WHERE w1 <> cast(1.0 as double)
-> ORDER BY 1,2 desc;
Empty set (0.01 sec)
3. What did you see instead (Required)
in TiDB with TiKV
mysql> WITH
-> v2 AS (SELECT (1 + (1 / c1)) as w1 FROM t1)
-> SELECT
-> w1, w1 <> cast(1.0 as double)
-> FROM v2 WHERE w1 <> cast(1.0 as double)
-> ORDER BY 1,2 desc;
+--------+---------------------------+
| w1 | w1 <> cast(1.0 as double) |
+--------+---------------------------+
| 1.0000 | 0 |
+--------+---------------------------+
1 row in set (0.00 sec)
4. What is your TiDB version? (Required)
Release Version: v8.5.0-alpha-184-g1c059a1216
Edition: Community
Git Commit Hash: 1c059a1216db711e2cb56ea9f3d1ad8c23db6327
Git Branch: HEAD
UTC Build Time: 2024-11-21 04:56:22
GoVersion: go1.23.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned vulnerabilities in TiDB that may lead to database logic error.
The text was updated successfully, but these errors were encountered:
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
when the second column is
0
, it should not appear:in TiDB with unistore:
3. What did you see instead (Required)
in TiDB with TiKV
4. What is your TiDB version? (Required)
topology:
distributed.yaml:
about us
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned vulnerabilities in TiDB that may lead to database logic error.
The text was updated successfully, but these errors were encountered: