when truncate(...)
is NULL
, truncate(...) is not NULL
evaluates to 1 unexpectedly
#53546
Labels
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The column
(truncate(...) is not NULL)
should be 0 when the expression in the columntruncate(...)
is NULL:3. What did you see instead (Required)
But TiDB output 1.
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: