Incompatible behaviors on display width #45338
Labels
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
affects-6.5
affects-7.1
affects-7.5
affects-8.1
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
I try to store the same value in a TINYINT column but with different display widths, TiDB returns different values.
2. What did you expect to see? (Required)
These three SELECTs return the same value -127.
I try the above example in MySQL, they all return -127.
3. What did you see instead (Required)
The first returns empty, while the other two return -127.
4. What is your TiDB version? (Required)
Release Version: v7.2.0
Edition: Community
Git Commit Hash: 9fd5f4a
Git Branch: heads/refs/tags/v7.2.0
UTC Build Time: 2023-06-27 15:04:42
GoVersion: go1.20.5
Race Enabled: false
Check Table Before Drop: false
Store: tikv
The text was updated successfully, but these errors were encountered: