expression: wrong results when comparing Decimal
and BigInt
#12301
Labels
type/bug
The issue is confirmed as a bug.
Decimal
and BigInt
#12301
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
The reason causing this problem is that when casting a
bigint
likebigint(11)
todecimal
, we use the zerofill-length 11 as its type size, so we will docast(bigint(11) as decimal(11, 0))
, which may causeOverflow
error.tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: