CastIntAsString did not work in some cases #44786
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
affects-7.0
affects-7.1
affects-7.2
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!
cast(int(1) as char)
will setchar.flen = 1
, which may truncate integers. We setchar.flen = 11
as mysql if we are casting integers.1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v6.5.2
The text was updated successfully, but these errors were encountered: